From 5fda475e91ec74cad0237dc4408fc1008626cb6f Mon Sep 17 00:00:00 2001 From: Oliver Duis Date: Mon, 8 Aug 2011 19:04:56 +0200 Subject: [PATCH] Fixed thumbnails aren't updated when toggling "Info" on/off see issue 898 --- rtgui/thumbbrowserentrybase.cc | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/rtgui/thumbbrowserentrybase.cc b/rtgui/thumbbrowserentrybase.cc index a13dcc404..de427204e 100644 --- a/rtgui/thumbbrowserentrybase.cc +++ b/rtgui/thumbbrowserentrybase.cc @@ -254,8 +254,6 @@ void ThumbBrowserEntryBase::getTextSizes (int& infow, int& infoh) { } void ThumbBrowserEntryBase::resize (int h) { - if (h==height && drawable) return; // Short cut if nothing to do - height = h; int old_preh = preh; @@ -290,11 +288,7 @@ void ThumbBrowserEntryBase::resize (int h) { if (width < bsw + 2*sideMargin + 2*borderWidth) width = bsw + 2*sideMargin + 2*borderWidth; - if ( preh == old_preh ) - { - updateBackBuffer (); - } - else + if ( preh != old_preh ) { delete [] preview; preview = NULL;