diff options
author | László Németh <laszlo.nemeth@collabora.com> | 2015-06-19 20:58:34 +0200 |
---|---|---|
committer | László Németh <laszlo.nemeth@collabora.com> | 2015-06-19 21:00:55 +0200 |
commit | 016cf9b21d5c569183b00ed7d228b7b0f2efa685 (patch) | |
tree | 0c7ac41c4ea613b1be2a789a31a70a7015594fb7 | |
parent | af7cbebd8eed82b81e00e6c2e0dc6c2c467ad8e2 (diff) |
fix tabpage rendering
Change-Id: I2448787c306a8a4ba531c0560e0435fefadb4dc8
-rw-r--r-- | svx/source/dialog/paraprev.cxx | 2 | ||||
-rw-r--r-- | vcl/source/window/tabpage.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/paraprev.cxx b/svx/source/dialog/paraprev.cxx index 188e1972e014..e68f61fa50a0 100644 --- a/svx/source/dialog/paraprev.cxx +++ b/svx/source/dialog/paraprev.cxx @@ -204,7 +204,7 @@ void SvxParaPrevWindow::DrawParagraph(vcl::RenderContext& rRenderContext, bool b rRenderContext.DrawRect(Lines[i]); rRenderContext.SetFillColor(aFillCol); } - DrawRect( aRect ); + rRenderContext.DrawRect( aRect ); Lines[i] = aRect; } 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() ); } } |