[Libreoffice-commits] core.git: vcl/source

Chris Sherlock chris.sherlock79 at gmail.com
Wed Feb 5 06:26:56 PST 2014


 vcl/source/window/status.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit be16bfd4c2d43c9152eac4ce4519fc31e9de9f34
Author: Chris Sherlock <chris.sherlock79 at gmail.com>
Date:   Tue Feb 4 00:06:40 2014 +1100

    fdo#74424 Use Window::GetOutDev() to access ImplIsRecordLayout()
    
    Part of the decoupling of Window from OutputDevice. We now get
    the Window's OutputDevice instance and manipulate this. Do not rely
    on the inherited function.
    
    Change-Id: Ibbdd8062659ed0de2925a61ce5e63e5a21834ade
    Reviewed-on: https://gerrit.libreoffice.org/7814
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>
    Tested-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 6a69afe..c477789 100644
--- a/vcl/source/window/status.cxx
+++ b/vcl/source/window/status.cxx
@@ -480,7 +480,9 @@ void StatusBar::ImplDrawItem( sal_Bool bOffScreen, sal_uInt16 nPos, sal_Bool bDr
         }
     }
 
-    if ( !ImplIsRecordLayout() )
+    const OutputDevice *pOutDev = GetOutDev();
+
+    if ( !pOutDev->ImplIsRecordLayout() )
         ImplCallEventListeners( VCLEVENT_STATUSBAR_DRAWITEM, (void*) sal_IntPtr(pItem->mnId) );
 }
 


More information about the Libreoffice-commits mailing list