diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-01 16:33:01 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-02 00:50:06 +0200 |
commit | 393c51cee8bc3de5a2a9f4e04161c59e8712f631 (patch) | |
tree | 8dcee58f3fc4b6ecffbe55c3a5fe749f3f342b46 /sc/source/ui/view/preview.cxx | |
parent | Unwind odd reference handling with csvcontrol. (diff) | |
download | core-393c51cee8bc3de5a2a9f4e04161c59e8712f631.tar.gz core-393c51cee8bc3de5a2a9f4e04161c59e8712f631.zip |
Audit LoseFocus - forms, reportdesign, sc, starmath, svtools.
Change-Id: If7068e59c88e8c3c3bafc70f64899a26d739e331
Diffstat (limited to 'sc/source/ui/view/preview.cxx')
-rw-r--r-- | sc/source/ui/view/preview.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sc/source/ui/view/preview.cxx b/sc/source/ui/view/preview.cxx index 5a59c2c8411f..d4adc42769e9 100644 --- a/sc/source/ui/view/preview.cxx +++ b/sc/source/ui/view/preview.cxx @@ -1506,14 +1506,16 @@ void ScPreview::InvalidateLocationData(sal_uLong nId) void ScPreview::GetFocus() { - if (pViewShell->HasAccessibilityObjects()) + Window::GetFocus(); + if (pViewShell && pViewShell->HasAccessibilityObjects()) pViewShell->BroadcastAccessibility( ScAccWinFocusGotHint(GetAccessible()) ); } void ScPreview::LoseFocus() { - if (pViewShell->HasAccessibilityObjects()) + if (pViewShell && pViewShell->HasAccessibilityObjects()) pViewShell->BroadcastAccessibility( ScAccWinFocusLostHint(GetAccessible()) ); + Window::LoseFocus(); } com::sun::star::uno::Reference<com::sun::star::accessibility::XAccessible> ScPreview::CreateAccessible() |