summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 09c5442c283d..2a827335701e 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()