From 2727e3f7f0532aed803f4e01662ee269a022007e Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 13 Feb 2017 08:47:55 +0100 Subject: [PATCH] CImageInfo: fix y position of infotext Minitv was not considered. When font size very small, infotext could be overlapping with minitv window. This should fix this. --- src/gui/imageinfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 99a3cace5..15dd92544 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -414,6 +414,7 @@ void CImageInfo::InitInfoText(const std::string& text) //add a caption for info contents Font * caption_font = g_Font[SNeutrinoSettings::FONT_TYPE_MENU]; int caption_height = caption_font->getHeight(); + y_tmp = max(y_tmp, cc_tv->getYPos()+cc_tv->getHeight()); if (cc_sub_caption == NULL) cc_sub_caption = new CComponentsLabel(cc_info->getXPos(), y_tmp, cc_info->getWidth(), caption_height, g_Locale->getText(LOCALE_IMAGEINFO_LICENSE), CTextBox::AUTO_WIDTH, item_font);