Kaydet (Commit) 164ed789 authored tarafından László Németh's avatar László Németh Kaydeden (comit) Andras Timar

fix tabpage rendering

Change-Id: I2448787c306a8a4ba531c0560e0435fefadb4dc8
Reviewed-on: https://gerrit.libreoffice.org/16379Reviewed-by: 's avatarChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: 's avatarChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
üst 6b15c389
......@@ -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;
}
......
......@@ -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() );
}
}
......
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