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-Url: http://ecere.com/cgi-bin/gitweb.cgi?p=sdk;a=commitdiff_plain;h=867f2219ff00b0b9f95316a99c3ce96d07ed0479 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 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) {