diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-07-21 02:26:18 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-07-21 02:26:18 +0300 |
commit | 1b02c423fe803e657fe93b4e480f9a5538ca6331 (patch) | |
tree | 05c33b59f749603d45366794301238abf4b7e5c0 | |
parent | 0a7669e4a1e91754c2194d2eb241edc589aa2c00 (diff) | |
download | manaverse-1b02c423fe803e657fe93b4e480f9a5538ca6331.tar.gz manaverse-1b02c423fe803e657fe93b4e480f9a5538ca6331.tar.bz2 manaverse-1b02c423fe803e657fe93b4e480f9a5538ca6331.tar.xz manaverse-1b02c423fe803e657fe93b4e480f9a5538ca6331.zip |
In statisbrowserbox remove separator if it present in last line.
-rw-r--r-- | src/gui/widgets/staticbrowserbox.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/widgets/staticbrowserbox.cpp b/src/gui/widgets/staticbrowserbox.cpp index 8b3106b24..de0d787a7 100644 --- a/src/gui/widgets/staticbrowserbox.cpp +++ b/src/gui/widgets/staticbrowserbox.cpp @@ -450,6 +450,12 @@ void StaticBrowserBox::updateHeight() mLineParts.clear(); uint32_t dataWidth = 0; + if (mSeparator) + { + mSeparator = false; + mTextRows.pop_back(); + } + FOR_EACH (TextRowCIter, i, mTextRows) { unsigned int x = CAST_U32(mPadding); |