From b4eae25edc2b75af41fdb98c4d0a332ee3dcf500 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 20 Aug 2012 14:19:58 +0300 Subject: Fix adding links top browserbox at top. --- src/gui/widgets/browserbox.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-60-g2f50