From dae88708eecb6a0fd8769dc0d09abecd26c99e46 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 3 Oct 2016 15:05:24 +0200 Subject: [PATCH] CImageInfo: fix possible item height calculation Calculation of height was ok on first paint, but on next time was broken. --- src/gui/imageinfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 57fcd7d48..93c6c7dee 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -359,8 +359,8 @@ void CImageInfo::InitInfos() item_font = item->getFont(); //calculate initial height for info form item_height = item_font->getHeight(); - cc_info->setHeight(v_info.size()*item_height); } + cc_info->setHeight(v_info.size()*item_height); if ((i == 0) && (item->getYPos() == CC_APPEND)) item->setYPos(1);