From 9d751d4090e31be60fef804fdaa5fce27a35320b Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Wed, 30 Dec 2015 01:57:34 +0100 Subject: [PATCH] CInfoViewer: try to fix paint info text box after delayed painting of timescale Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/5d6e33ac9da93a1b3073932945318e3237f90e0c Author: Thilo Graf Date: 2015-12-30 (Wed, 30 Dec 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/infoviewer.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/infoviewer.cpp b/src/gui/infoviewer.cpp index cdcf3a356..ec8573445 100644 --- a/src/gui/infoviewer.cpp +++ b/src/gui/infoviewer.cpp @@ -1932,6 +1932,10 @@ void CInfoViewer::showInfoFile() return; } + //check dimension, if changed then kill to force reinit + if (infobar_txt->getWidth() != width) + infobar_txt->kill(); + //set some properties for info object infobar_txt->setDimensionsAll(xStart, yStart, width, height); infobar_txt->setCorner(RADIUS_SMALL);