From 4a4627eba410df933d004170d9f5638526acaed2 Mon Sep 17 00:00:00 2001 From: Jan Holesovsky Date: Fri, 4 Jan 2013 21:07:57 +0100 Subject: Personas: Fix copy constructor + always reference the Application settings ...to avoid reading the bitmaps more than once. Change-Id: I7577f5df96a5a28f1ac1f800867af5eee298663e --- vcl/source/window/dockingarea.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl/source/window/dockingarea.cxx') diff --git a/vcl/source/window/dockingarea.cxx b/vcl/source/window/dockingarea.cxx index 81f67db697b0..7d97dd9c8fa2 100644 --- a/vcl/source/window/dockingarea.cxx +++ b/vcl/source/window/dockingarea.cxx @@ -50,7 +50,7 @@ DockingAreaWindow::ImplData::~ImplData() static void ImplInitBackground( DockingAreaWindow* pThis ) { - const BitmapEx* pPersonaBitmap = pThis->GetSettings().GetStyleSettings().GetPersonaHeader(); + const BitmapEx* pPersonaBitmap = Application::GetSettings().GetStyleSettings().GetPersonaHeader(); if ( pPersonaBitmap != NULL && pThis->GetAlign() == WINDOWALIGN_TOP ) { Wallpaper aWallpaper( *pPersonaBitmap ); @@ -174,7 +174,7 @@ void DockingAreaWindow::Paint( const Rectangle& ) } ControlState nState = CTRL_STATE_ENABLED; - if ( GetAlign() == WINDOWALIGN_TOP && GetSettings().GetStyleSettings().GetPersonaHeader() ) + if ( GetAlign() == WINDOWALIGN_TOP && Application::GetSettings().GetStyleSettings().GetPersonaHeader() ) Erase(); else if ( !ImplGetSVData()->maNWFData.mbDockingAreaSeparateTB ) { -- cgit