summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorLászló Németh <laszlo.nemeth@collabora.com>2015-06-19 20:58:34 +0200
committerLászló Németh <laszlo.nemeth@collabora.com>2015-06-19 21:00:55 +0200
commit016cf9b21d5c569183b00ed7d228b7b0f2efa685 (patch)
tree0c7ac41c4ea613b1be2a789a31a70a7015594fb7 /vcl
parentaf7cbebd8eed82b81e00e6c2e0dc6c2c467ad8e2 (diff)
fix tabpage rendering
Change-Id: I2448787c306a8a4ba531c0560e0435fefadb4dc8
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/tabpage.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/window/tabpage.cxx b/vcl/source/window/tabpage.cxx
index d2c432ef5cdc..d4ca13d0b4bb 100644
--- a/vcl/source/window/tabpage.cxx
+++ b/vcl/source/window/tabpage.cxx
@@ -126,7 +126,7 @@ void TabPage::DataChanged( const DataChangedEvent& rDCEvt )
}
}
-void TabPage::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
+void TabPage::Paint( vcl::RenderContext& rRenderContext, const Rectangle& )
{
// draw native tabpage only inside tabcontrols, standalone tabpages look ugly (due to bad dialog design)
if( IsNativeControlSupported(CTRL_TAB_BODY, PART_ENTIRE_CONTROL) && GetParent() && (GetParent()->GetType() == WINDOW_TABCONTROL) )
@@ -143,7 +143,7 @@ void TabPage::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& )
// pass the whole window region to NWF as the tab body might be a gradient or bitmap
// that has to be scaled properly, clipping makes sure that we do not paint too much
Rectangle aCtrlRegion( aPoint, GetOutputSizePixel() );
- DrawNativeControl( CTRL_TAB_BODY, part, aCtrlRegion, nState,
+ rRenderContext.DrawNativeControl( CTRL_TAB_BODY, part, aCtrlRegion, nState,
aControlValue, OUString() );
}
}