ecere/gui/controls/ListBox: Fixed drag-select issues introduced by 92c4fe003bc4955791...
authorJerome St-Louis <jerome@ecere.com>
Wed, 11 Mar 2015 18:10:36 +0000 (14:10 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 15 Oct 2015 00:19:32 +0000 (20:19 -0400)
- Only doing these row adjustments for row-dragging cursor

ecere/src/gui/controls/ListBox.ec

index bf204f7..8aee587 100644 (file)
@@ -3248,10 +3248,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)
          {