Kaydet (Commit) 4ab5377b authored tarafından Caolán McNamara's avatar Caolán McNamara

Push without Pop

regression from

commit fb8f83c1
Date:   Mon May 11 14:33:01 2015 +0900

    refactor TabBar to use RenderContext

Change-Id: Ie77d23e164a880cec6ba5f5387070da1ada30760
(cherry picked from commit ca951608)
üst 38ce0b5c
...@@ -1285,7 +1285,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect) ...@@ -1285,7 +1285,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect)
rRenderContext.SetLineColor(); rRenderContext.SetLineColor();
rRenderContext.SetFillColor(aSelectColor); rRenderContext.SetFillColor(aSelectColor);
aDrawer.drawOverTopBorder(); aDrawer.drawOverTopBorder();
return; break;
} }
pItem = prev(); pItem = prev();
...@@ -1293,7 +1293,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect) ...@@ -1293,7 +1293,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect)
else else
{ {
if (bCurrent) if (bCurrent)
return; break;
pItem = NULL; pItem = NULL;
} }
...@@ -1301,6 +1301,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect) ...@@ -1301,6 +1301,7 @@ void TabBar::Paint(vcl::RenderContext& rRenderContext, const Rectangle& rect)
if (!pItem) if (!pItem)
pItem = pCurItem; pItem = pCurItem;
} }
rRenderContext.Pop();
} }
void TabBar::Resize() void TabBar::Resize()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment