From 5d6e33ac9da93a1b3073932945318e3237f90e0c 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 --- 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);