Fixed thumbnails aren't updated when toggling "Info" on/off

see issue 898
This commit is contained in:
Oliver Duis
2011-08-08 19:04:56 +02:00
parent 491043f63c
commit 5fda475e91

View File

@@ -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;