From 0c1728a337db0591735b0327f2a08b96e2fce86f Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 18 Jun 2017 00:54:38 +0300 Subject: Add debug assert in browserbox if called calcheight from draw. --- src/gui/widgets/browserbox.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 38c76bac6..f9ad9fc83 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -43,6 +43,7 @@ #include "resources/loaders/imagesetloader.h" #include "utils/browserboxtools.h" +#include "utils/checkutils.h" #include "utils/stringutils.h" #include "utils/timer.h" #include "utils/translation/podict.h" @@ -432,7 +433,10 @@ void BrowserBox::draw(Graphics *const graphics) mYStart = 0; if (mDimension.width != mWidth) + { updateHeight(); + reportAlways("browserbox resize in draw"); + } if (mOpaque == Opaque_true) { -- cgit v1.2.3-70-g09d2