ecere/gui/controls/ListBox: Fixed issue moving rows in tree view
[sdk] / ecere / src / gui / controls / ListBox.ec
index ca851e2..d0cd421 100644 (file)
@@ -490,7 +490,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