From 08ee68794e6606f625b904917875c24159b146cf Mon Sep 17 00:00:00 2001 From: Jerome St-Louis Date: Wed, 11 Mar 2015 14:10:36 -0400 Subject: [PATCH 1/1] ecere/gui/controls/ListBox: Fixed drag-select issues introduced by 92c4fe003bc4955791b62c8536a34d1d240a916c - Only doing these row adjustments for row-dragging cursor --- ecere/src/gui/controls/ListBox.ec | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/ecere/src/gui/controls/ListBox.ec b/ecere/src/gui/controls/ListBox.ec index bf204f7..8aee587 100644 --- a/ecere/src/gui/controls/ListBox.ec +++ b/ecere/src/gui/controls/ListBox.ec @@ -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) { -- 1.8.3.1