summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2014-02-04 00:06:40 +1100
committerCaolán McNamara <caolanm@redhat.com>2014-02-05 14:26:34 +0000
commitbe16bfd4c2d43c9152eac4ce4519fc31e9de9f34 (patch)
tree0f225bb2cec47a1d85eb4bfa8b5ce1ff7ef67002 /vcl
parentfdo#74424 Use Window::GetOutDev() to access ImplReMirrored() (diff)
downloadcore-be16bfd4c2d43c9152eac4ce4519fc31e9de9f34.tar.gz
core-be16bfd4c2d43c9152eac4ce4519fc31e9de9f34.zip
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@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/window/status.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/source/window/status.cxx b/vcl/source/window/status.cxx
index 6a69afef6d47..c47778923493 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) );
}