From 016cf9b21d5c569183b00ed7d228b7b0f2efa685 Mon Sep 17 00:00:00 2001 From: László Németh Date: Fri, 19 Jun 2015 20:58:34 +0200 Subject: fix tabpage rendering Change-Id: I2448787c306a8a4ba531c0560e0435fefadb4dc8 --- vcl/source/window/tabpage.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') 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() ); } } -- cgit