Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22481ba
)
ecere/gui/ListBox: Fixed moving rows updating with wrong index
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 28 Mar 2013 04:31:16 +0000
(
00:31
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 28 Mar 2013 04:31:16 +0000
(
00:31
-0400)
- This fixes edit boxes popping up in wrong location in compiler settings
ecere/src/gui/controls/ListBox.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/controls/ListBox.ec
b/ecere/src/gui/controls/ListBox.ec
index
a3aa5d5
..
37cc0eb
100644
(file)
--- a/
ecere/src/gui/controls/ListBox.ec
+++ b/
ecere/src/gui/controls/ListBox.ec
@@
-522,10
+522,8
@@
public:
{
DataRow nextRow = GetNextRow();
if(this == listBox.firstRowShown)
- {
listBox.firstRowShown = nextRow;
- index = after ? (after.index + 1) : 0;
- }
+ index = after.index;
// All rows between ROW (exclusive) and AFTER (inclusive) are decremented by one
// ROW is equal to AFTER's index