always update the scrollbar when update()ing a GalleryList, otherwise the scrollbar is not set correctly on the new set window.

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1270 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-12-30 16:08:38 +00:00
parent 12f8be203e
commit 74c95552e7
+1 -2
View File
@@ -77,12 +77,11 @@ void GalleryList::update() {
if (col.selection != NO_SELECTION) {
if (itemStart(col.selection) < visible_start) {
scrollTo(itemStart(col.selection), false);
updateScrollbar();
} else if (itemEnd(col.selection) > visibleEnd()) {
scrollTo(itemEnd(col.selection) + visible_start - visibleEnd(), false);
updateScrollbar();
}
}
updateScrollbar();
Refresh(false);
}