mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-29 14:22:25 -06:00
LayDes: Fix compilation warning (bug) raised by GCC.
git-svn-id: svn://ultimatepp.org/upp/trunk@12841 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b67ca7132a
commit
261e7d20c8
1 changed files with 1 additions and 1 deletions
|
|
@ -1699,7 +1699,7 @@ bool LayDes::DoKey(dword key, int count)
|
|||
dword k = (key == K_PAGEUP ? K_UP : key == K_PAGEDOWN ? K_DOWN : key);
|
||||
Ptr<Ctrl> focus = GetFocusCtrl();
|
||||
if(!item.IsCursor() && item.GetCount() > 0)
|
||||
item.SetCursor(k = K_DOWN ? 0 : item.GetCount() - 1);
|
||||
item.SetCursor(k == K_DOWN ? 0 : item.GetCount() - 1);
|
||||
else
|
||||
item.Key(k, count);
|
||||
ItemClick();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue