From 24a692351bdea829cb8b8ebea7d910be5638f2b6 Mon Sep 17 00:00:00 2001 From: Oliver Duis Date: Thu, 16 Jun 2011 08:12:27 +0200 Subject: [PATCH] Fixed skewed thumbs problem see issue 701 --- rtgui/thumbbrowserbase.cc | 4 +--- rtgui/thumbbrowserentrybase.cc | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/rtgui/thumbbrowserbase.cc b/rtgui/thumbbrowserbase.cc index a55e1b6f7..0fb2507ef 100644 --- a/rtgui/thumbbrowserbase.cc +++ b/rtgui/thumbbrowserbase.cc @@ -539,11 +539,9 @@ void ThumbBrowserBase::refreshThumbImages () { Glib::Mutex::Lock lock(entryMutex); #endif + int previewHeight = getCurrentThumbSize(); for (int i=0; iresize (previewHeight);// TODO!!! Might be performance bottleneck - /* called if necessary by resize() - fd[i]->refreshThumbnailImage (); TODO: This might cause crashes on some installations */ } } diff --git a/rtgui/thumbbrowserentrybase.cc b/rtgui/thumbbrowserentrybase.cc index b48e75293..a13dcc404 100644 --- a/rtgui/thumbbrowserentrybase.cc +++ b/rtgui/thumbbrowserentrybase.cc @@ -254,6 +254,7 @@ 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;