[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Eliot-dev] eliot/wxwin gfxresult.cc
From: |
eliot-dev |
Subject: |
[Eliot-dev] eliot/wxwin gfxresult.cc |
Date: |
Sun, 15 Oct 2006 10:39:11 +0000 |
CVSROOT: /cvsroot/eliot
Module name: eliot
Changes by: Olivier Teulière <ipkiss> 06/10/15 10:39:11
Modified files:
wxwin : gfxresult.cc
Log message:
Fixed a bug in the wxWidgets interface: after a search has been done,
choosing "Complement" empties the results list, even is the rack stays the same.
Before this fix, the sequence "Tirage --> Rechercher --> Complement -->
click on another result" was doing invalid memory reads...
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/wxwin/gfxresult.cc?cvsroot=eliot&r1=1.5&r2=1.6
Patches:
Index: gfxresult.cc
===================================================================
RCS file: /cvsroot/eliot/eliot/wxwin/gfxresult.cc,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -b -r1.5 -r1.6
--- gfxresult.cc 22 Jan 2006 12:23:53 -0000 1.5
+++ gfxresult.cc 15 Oct 2006 10:39:11 -0000 1.6
@@ -115,7 +115,7 @@
debug(" GfxResult::Refresh : ");
std::wstring rack = game->getCurrentPlayer().getCurrentRack().toString();
- if (savedrack != rack)
+ if (savedrack != rack || static_cast<Training*>(game)->getResults().size()
!= results->GetItemCount())
{
debug("changed (%ls -> %ls)",savedrack.c_str(),rack.c_str());
savedrack = rack;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Eliot-dev] eliot/wxwin gfxresult.cc,
eliot-dev <=