From 98b0862d77213a68c371b3a39ea74753af9297aa Mon Sep 17 00:00:00 2001 From: vanhofen Date: Fri, 27 Dec 2019 23:04:19 +0100 Subject: [PATCH] infoviewer: just code cosmetics; sort curr/next boxes Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/ea934f35b8948f40f618da85d5904585de8fe341 Author: vanhofen Date: 2019-12-27 (Fri, 27 Dec 2019) Origin message was: ------------------ - infoviewer: just code cosmetics; sort curr/next boxes ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index 9a3ca1067..fb0c1b525 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -476,8 +476,8 @@ void CInfoViewer::paintBody() body = new CComponentsShapeSquare(ChanInfoX, y_body, BoxEndX-ChanInfoX, h_body); body->setItemName("body"); } else { - if (txt_curr_event && txt_curr_start && txt_curr_rest && - txt_next_event && txt_next_start && txt_next_in) { + if (txt_curr_start && txt_curr_event && txt_curr_rest && + txt_next_start && txt_next_event && txt_next_in) { if (h_body != body->getHeight() || y_body != body->getYPos()){ txt_curr_start->getCTextBoxObject()->clearScreenBuffer(); txt_curr_event->getCTextBoxObject()->clearScreenBuffer(); @@ -2234,12 +2234,12 @@ void CInfoViewer::killTitle() body->kill(); + if (txt_curr_start) + txt_curr_start->kill(); if (txt_curr_event) txt_curr_event->kill(); if (txt_curr_rest) txt_curr_rest->kill(); - if (txt_curr_start) - txt_curr_start->kill(); if (txt_next_start) txt_next_start->kill(); if (txt_next_event)