mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: Fixed issues with ArrayCtrl::ShowLines
git-svn-id: svn://ultimatepp.org/upp/trunk@12802 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b98aef5f09
commit
a93811789b
1 changed files with 5 additions and 2 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#include "CtrlLib.h"
|
||||
#include "CtrlLib.h"
|
||||
|
||||
namespace Upp {
|
||||
|
||||
|
|
@ -623,6 +624,8 @@ void ArrayCtrl::Reline(int i, int y)
|
|||
i++;
|
||||
}
|
||||
SetSb();
|
||||
Refresh();
|
||||
SyncCtrls();
|
||||
}
|
||||
|
||||
int ArrayCtrl::GetLineY(int i) const
|
||||
|
|
@ -1518,8 +1521,8 @@ void ArrayCtrl::ShowLine(int i, bool e)
|
|||
int q = ln.GetCount();
|
||||
array.At(i).visible = e;
|
||||
ln.At(i);
|
||||
if(q > 0)
|
||||
Reline(q - 1, ln[q - 1].y);
|
||||
if(q > 0 && i > 0)
|
||||
Reline(i - 1, ln[i - 1].y);
|
||||
else
|
||||
Reline(0, 0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue