summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-05-26 16:21:34 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-05-26 16:24:59 +0100
commitca95160830305c507a776c3fc0b13c71dee0dbe7 (patch)
tree88ee2bb4ef880cad1aa0ad93a4fdc2fc8e1d1ca9
parent96041179d4aa5e0eb543c3c5da8e493beb0ed133 (diff)
Push without Pop
regression from commit fb8f83c12e991ad01f049332c022697736d03986 Date: Mon May 11 14:33:01 2015 +0900 refactor TabBar to use RenderContext Change-Id: Ie77d23e164a880cec6ba5f5387070da1ada30760
-rw-r--r--svtools/source/control/tabbar.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svtools/source/control/tabbar.cxx b/svtools/source/control/tabbar.cxx
index fb736eb3582b..d84695a53889 100644
--- a/svtools/source/control/tabbar.cxx
+++ b/svtools/source/control/tabbar.cxx
@@ -1285,7 +1285,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect)
rRenderContext.SetLineColor();
rRenderContext.SetFillColor(aSelectColor);
aDrawer.drawOverTopBorder();
- return;
+ break;
}
pItem = prev();
@@ -1293,7 +1293,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect)
else
{
if (bCurrent)
- return;
+ break;
pItem = NULL;
}
@@ -1301,6 +1301,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect)
if (!pItem)
pItem = pCurItem;
}
+ rRenderContext.Pop();
}
void TabBar::Resize()