Fixed skewed thumbs problem

see issue 701
This commit is contained in:
Oliver Duis
2011-06-16 08:12:27 +02:00
parent b1e8ed3f75
commit 24a692351b
2 changed files with 2 additions and 3 deletions

View File

@@ -539,11 +539,9 @@ void ThumbBrowserBase::refreshThumbImages () {
Glib::Mutex::Lock lock(entryMutex);
#endif
int previewHeight = getCurrentThumbSize();
for (int i=0; i<fd.size(); i++){
previewHeight = getCurrentThumbSize();
fd[i]->resize (previewHeight);// TODO!!! Might be performance bottleneck
/* called if necessary by resize()
fd[i]->refreshThumbnailImage (); TODO: This might cause crashes on some installations */
}
}

View File

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