summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-18 00:54:38 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-18 00:54:38 +0300
commit0c1728a337db0591735b0327f2a08b96e2fce86f (patch)
tree34a3e8cb895e33d2225688fde7e8bb64807e071e /src/gui
parentfdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b (diff)
downloadmanaplus-0c1728a337db0591735b0327f2a08b96e2fce86f.tar.gz
manaplus-0c1728a337db0591735b0327f2a08b96e2fce86f.tar.bz2
manaplus-0c1728a337db0591735b0327f2a08b96e2fce86f.tar.xz
manaplus-0c1728a337db0591735b0327f2a08b96e2fce86f.zip
Add debug assert in browserbox if called calcheight from draw.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/widgets/browserbox.cpp4
1 files changed, 4 insertions, 0 deletions
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)
{