ecere/gui/controls/ListBox: Fixed drag-select issues introduced by 92c4fe003bc4955791...
[sdk] / ecere / src / gui / controls / ListBox.ec
index d0cd421..8a30a6b 100644 (file)
@@ -3249,10 +3249,15 @@ private:
                break;
             }
          }
-         if(row && row == currentRow)
-            row = row.GetNextRow();
-         if(row && row.parent == currentRow)
-            row = row.GetNextRow();
+
+         if(dragRow && style.moveRows)
+         {
+            if(row && row == currentRow)
+               row = row.GetNextRow();
+
+            if(row && row.parent == currentRow)
+               row = row.GetNextRow();
+         }
 
          if(row && currentRow != row)
          {