Fixed a bug with filmstrip height when filtering; see issue 700

This commit is contained in:
Oliver Duis
2011-06-08 21:00:27 +02:00
parent f68e8355e0
commit ac1ea024b2

View File

@@ -639,7 +639,12 @@ int ThumbBrowserBase::getEffectiveHeight() {
Glib::Mutex::Lock lock(entryMutex); Glib::Mutex::Lock lock(entryMutex);
#endif #endif
if (fd.size()>0) h+=fd[0]->getEffectiveHeight(); // Filtered items do not change in size, so take a non-filtered
for (int i=0;i<fd.size();i++)
if (!fd[i]->filtered) {
h+=fd[i]->getEffectiveHeight();
break;
}
} }
return h; return h;