mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
CtrlLib: TreeCtrl UHD fix
git-svn-id: svn://ultimatepp.org/upp/trunk@13480 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
fdf75cf340
commit
a27d424fbe
1 changed files with 1 additions and 1 deletions
|
|
@ -851,7 +851,7 @@ void TreeCtrl::DoClick(Point p, dword flags, bool down)
|
|||
int x = itemx - (levelcx >> 1);
|
||||
itemclickpos.x = p.x - itemx;
|
||||
itemclickpos.y = p.y + org.y - l.y;
|
||||
if(p.x > x - 6 && p.x < x + 6) {
|
||||
if(p.x > x - DPI(6) && p.x < x + DPI(6)) {
|
||||
if(down)
|
||||
Open(l.itemi, !IsOpen(l.itemi));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue