diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-08-20 14:19:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-08-20 14:19:58 +0300 |
commit | b4eae25edc2b75af41fdb98c4d0a332ee3dcf500 (patch) | |
tree | d87c8c6be82d59d255c74d81c854b11009db4d1e /src | |
parent | 94c6917b023ca436dfbff49e33d84f9d45cdbbc3 (diff) | |
download | ManaVerse-b4eae25edc2b75af41fdb98c4d0a332ee3dcf500.tar.gz ManaVerse-b4eae25edc2b75af41fdb98c4d0a332ee3dcf500.tar.bz2 ManaVerse-b4eae25edc2b75af41fdb98c4d0a332ee3dcf500.tar.xz ManaVerse-b4eae25edc2b75af41fdb98c4d0a332ee3dcf500.zip |
Fix adding links top browserbox at top.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/browserbox.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index cf2a9ea88..2c8f64a02 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -145,7 +145,10 @@ void BrowserBox::addRow(const std::string &row, bool atTop) bLink.x1 = font->getWidth(tmp2) - 1; bLink.x2 = bLink.x1 + font->getWidth(bLink.caption) + 1; - mLinks.push_back(bLink); + if (atTop) + mLinks.insert(mLinks.begin(), bLink); + else + mLinks.push_back(bLink); linksCount ++; newRow += "##<" + bLink.caption; |