From: Jerome St-Louis Date: Wed, 11 Mar 2015 06:19:30 +0000 (-0400) Subject: ecere/gui/controls/ListBox: Fixed issue moving rows in tree view X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?p=sdk;a=commitdiff_plain;h=84274c08d75ac7d6e3e14c2800014d4b0317295f ecere/gui/controls/ListBox: Fixed issue moving rows in tree view --- diff --git a/ecere/src/gui/controls/ListBox.ec b/ecere/src/gui/controls/ListBox.ec index 7ae0fd0..bf204f7 100644 --- a/ecere/src/gui/controls/ListBox.ec +++ b/ecere/src/gui/controls/ListBox.ec @@ -489,7 +489,7 @@ public: if(!after || after.index < index) { - if((after && after == listBox.firstRowShown.prev) || (!after && !parent && listBox.firstRowShown.prev)) + if((after && after == listBox.firstRowShown.prev) || (!after && !parent /*&& listBox.firstRowShown.prev*/)) listBox.firstRowShown = this; // All rows between AFTER (exclusive) and ROW (exclusive) are incremented by one