summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-07-21 02:26:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-07-21 02:26:18 +0300
commit1b02c423fe803e657fe93b4e480f9a5538ca6331 (patch)
tree05c33b59f749603d45366794301238abf4b7e5c0 /src/gui/widgets
parent0a7669e4a1e91754c2194d2eb241edc589aa2c00 (diff)
downloadmv-1b02c423fe803e657fe93b4e480f9a5538ca6331.tar.gz
mv-1b02c423fe803e657fe93b4e480f9a5538ca6331.tar.bz2
mv-1b02c423fe803e657fe93b4e480f9a5538ca6331.tar.xz
mv-1b02c423fe803e657fe93b4e480f9a5538ca6331.zip
In statisbrowserbox remove separator if it present in last line.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/staticbrowserbox.cpp6
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);