http://git.etersoft.ru/projects
/
wine
/
eterwine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
824353d
)
TREEVIEW_DoSelectItem should not do any of the TVGN_FIRSTVISIBLE work
author
Evan Deaubl
<wine@warpedview.com>
Mon, 14 Mar 2005 10:51:06 +0000
(10:51 +0000)
committer
Alexandre Julliard
<julliard@winehq.org>
Mon, 14 Mar 2005 10:51:06 +0000
(10:51 +0000)
if the newSelect parameter is NULL.
dlls/comctl32/treeview.c
patch
|
blob
|
blame
|
history
diff --git
a/dlls/comctl32/treeview.c
b/dlls/comctl32/treeview.c
index 640f86a0c328add219e6ff9b5a72a7e46253a391..b13c8aa0317a39326fb3c74305f9071a56f402f2 100644
(file)
--- a/
dlls/comctl32/treeview.c
+++ b/
dlls/comctl32/treeview.c
@@
-4242,9
+4242,12
@@
TREEVIEW_DoSelectItem(TREEVIEW_INFO *infoPtr, INT action, HTREEITEM newSelect,
break;
case TVGN_FIRSTVISIBLE:
- TREEVIEW_EnsureVisible(infoPtr, newSelect, FALSE);
- TREEVIEW_SetFirstVisible(infoPtr, newSelect, TRUE);
- TREEVIEW_Invalidate(infoPtr, NULL);
+ if (newSelect != NULL)
+ {
+ TREEVIEW_EnsureVisible(infoPtr, newSelect, FALSE);
+ TREEVIEW_SetFirstVisible(infoPtr, newSelect, TRUE);
+ TREEVIEW_Invalidate(infoPtr, NULL);
+ }
break;
}