From: Jerome St-Louis Date: Wed, 11 Mar 2015 18:10:36 +0000 (-0400) Subject: ecere/gui/controls/ListBox: Fixed drag-select issues introduced by 92c4fe003bc4955791... X-Git-Tag: 0.44.13~75 X-Git-Url: http://ecere.com/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef54ce323858a85061dac0604d0fa100420bbf4a;hp=3b86965c5b967c551b03bf91605ab04cd2d7d297;p=sdk ecere/gui/controls/ListBox: Fixed drag-select issues introduced by 92c4fe003bc4955791b62c8536a34d1d240a916c - Only doing these row adjustments for row-dragging cursor --- diff --git a/ecere/src/gui/controls/ListBox.ec b/ecere/src/gui/controls/ListBox.ec index d0cd421..8a30a6b 100644 --- a/ecere/src/gui/controls/ListBox.ec +++ b/ecere/src/gui/controls/ListBox.ec @@ -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) {