From 1afa39b1e9a4ce1cdab866a29a637283ed6792a9 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 28 May 2015 18:53:13 +0900 Subject: fix calls to RenderContext Change-Id: I5ef4b740a9c62d5cc7a2126686df4fd86a4b3492 --- vcl/source/control/edit.cxx | 2 +- vcl/source/control/lstbox.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index 15cf93d1c179..6ff15da2302e 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -551,7 +551,7 @@ void Edit::ImplRepaint(vcl::RenderContext& rRenderContext, bool bLayout) rRenderContext.DrawRect(Rectangle(aPos, Size(GetOutputSizePixel().Width() - 2 * mnXOffset, GetOutputSizePixel().Height()))); rRenderContext.Pop(); - SetTextFillColor(GetControlBackground()); + rRenderContext.SetTextFillColor(GetControlBackground()); } else if (IsPaintTransparent() || ImplUseNativeBorder(rRenderContext, GetStyle())) rRenderContext.SetTextFillColor(); diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx index a1ad0ebb8bca..6944518cef79 100644 --- a/vcl/source/control/lstbox.cxx +++ b/vcl/source/control/lstbox.cxx @@ -555,7 +555,7 @@ void ListBox::DataChanged( const DataChangedEvent& rDCEvt ) if ( mpImplWin ) { mpImplWin->SetSettings( GetSettings() ); // If not yet set... - mpImplWin->ApplySettings(*this); + mpImplWin->ApplySettings(*mpImplWin); mpBtn->SetSettings( GetSettings() ); ImplInitDropDownButton( mpBtn ); -- cgit