From d0dbe37f8c372bdc7112cabd769a03218bcf9c7a Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Tue, 17 Jul 2012 22:00:12 +0200 Subject: [PATCH] menu: ensure also correct x-position of details line It's possible that x pos is changeing during runtime Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/084fb88f50a67a73095aca522ec303998dc079ef Author: Thilo Graf Date: 2012-07-17 (Tue, 17 Jul 2012) Origin message was: ------------------ *menu: ensure also correct x-position of details line It's possible that x pos is changeing during runtime ------------------ This commit was generated by Migit --- src/gui/widget/menue.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/widget/menue.cpp b/src/gui/widget/menue.cpp index 306f69412..0ac02d7fb 100644 --- a/src/gui/widget/menue.cpp +++ b/src/gui/widget/menue.cpp @@ -1055,7 +1055,7 @@ void CMenuWidget::paintHint(int pos) if (hint_painted) { /* clear detailsline line */ if (details_line != NULL) - details_line->hide(); + details_line->restore(); /* clear info box */ if (info_box != NULL) info_box->hide((pos == -1) ? true : false); @@ -1084,9 +1084,9 @@ printf("paintHint: icon %s text %s\n", item->hintIcon.c_str(), g_Locale->getText int markh = hint_height > rad*2 ? hint_height - rad*2 : hint_height; int imarkh = iheight/2+1; - if (details_line == NULL) + if (details_line == NULL){ details_line = new CComponentsDetailLine(xpos, ypos1a, ypos2a, imarkh, markh); - else { + }else{ details_line->setXPos(xpos); details_line->setYPos(ypos1a); details_line->setYPosDown(ypos2a);