diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-18 00:54:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-18 00:54:38 +0300 |
commit | 0c1728a337db0591735b0327f2a08b96e2fce86f (patch) | |
tree | 34a3e8cb895e33d2225688fde7e8bb64807e071e /src/gui/widgets/browserbox.cpp | |
parent | fdfeb1ca7aabe65ea24ffa9343e2745ebd70a17b (diff) | |
download | mv-0c1728a337db0591735b0327f2a08b96e2fce86f.tar.gz mv-0c1728a337db0591735b0327f2a08b96e2fce86f.tar.bz2 mv-0c1728a337db0591735b0327f2a08b96e2fce86f.tar.xz mv-0c1728a337db0591735b0327f2a08b96e2fce86f.zip |
Add debug assert in browserbox if called calcheight from draw.
Diffstat (limited to 'src/gui/widgets/browserbox.cpp')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 4 |
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) { |