From 9679100f987391dbc9626571e10985d7079abaf0 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Sun, 14 Jan 2018 13:26:57 +0100 Subject: [PATCH] Revert "infoviewer: fix copy/paste error clearing wrong field" This reverts commit 9ad4a3c8f536dfa6c8a36e36a725128240a9a9f1. Current time was broken. --- src/gui/infoviewer.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index d93f29692..547722ae6 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1776,9 +1776,11 @@ void CInfoViewer::display_Info(const char *current, const char *next, txt_curr_start = new CComponentsTextTransp(NULL, InfoX, CurrInfoY - height, info_time_width, height); else txt_curr_start->setDimensionsAll(InfoX, CurrInfoY - height, info_time_width, height); - txt_curr_start->setText(runningStart, CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO], colored_event_C ? COL_COLORED_EVENTS_TEXT : COL_INFOBAR_TEXT); - if (txt_curr_start->isPainted()) - txt_curr_start->hide(); + txt_curr_start->setItemName("txt_curr_start"); + txt_curr_start->setText(runningStart, CTextBox::NO_AUTO_LINEBREAK, g_Font[SNeutrinoSettings::FONT_TYPE_INFOBAR_INFO], colored_event_C ? COL_COLORED_EVENTS_TEXT : COL_INFOBAR_TEXT); + if (txt_curr_event->isPainted()) + txt_curr_event->hide(); + txt_curr_start->paint(CC_SAVE_SCREEN_YES); } if (runningRest){