ecere/gui/controls/ListBox: Fixed issue moving rows in tree view
authorJerome St-Louis <jerome@ecere.com>
Wed, 11 Mar 2015 06:19:30 +0000 (02:19 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:19:32 +0000 (20:19 -0400)
ecere/src/gui/controls/ListBox.ec

index 7ae0fd0..bf204f7 100644 (file)
@@ -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