From 17f82311be33e83931f03a946df09d88fdaffc67 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. Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/dae88708eecb6a0fd8769dc0d09abecd26c99e46 Author: Thilo Graf Date: 2016-10-03 (Mon, 03 Oct 2016) ------------------ This commit was generated by Migit --- 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);