From 74c95552e7ccfad433442a9f9d230a0497fcf16c Mon Sep 17 00:00:00 2001 From: twanvl Date: Tue, 30 Dec 2008 16:08:38 +0000 Subject: [PATCH] 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 --- src/gui/control/gallery_list.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/control/gallery_list.cpp b/src/gui/control/gallery_list.cpp index d7d63ed6..e5f037a2 100644 --- a/src/gui/control/gallery_list.cpp +++ b/src/gui/control/gallery_list.cpp @@ -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); }