Fixed thumbnails aren't updated when toggling "Info" on/off
see issue 898
This commit is contained in:
@@ -254,8 +254,6 @@ void ThumbBrowserEntryBase::getTextSizes (int& infow, int& infoh) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ThumbBrowserEntryBase::resize (int h) {
|
void ThumbBrowserEntryBase::resize (int h) {
|
||||||
if (h==height && drawable) return; // Short cut if nothing to do
|
|
||||||
|
|
||||||
height = h;
|
height = h;
|
||||||
int old_preh = preh;
|
int old_preh = preh;
|
||||||
|
|
||||||
@@ -290,11 +288,7 @@ void ThumbBrowserEntryBase::resize (int h) {
|
|||||||
if (width < bsw + 2*sideMargin + 2*borderWidth)
|
if (width < bsw + 2*sideMargin + 2*borderWidth)
|
||||||
width = bsw + 2*sideMargin + 2*borderWidth;
|
width = bsw + 2*sideMargin + 2*borderWidth;
|
||||||
|
|
||||||
if ( preh == old_preh )
|
if ( preh != old_preh )
|
||||||
{
|
|
||||||
updateBackBuffer ();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
delete [] preview;
|
delete [] preview;
|
||||||
preview = NULL;
|
preview = NULL;
|
||||||
|
Reference in New Issue
Block a user