summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/sdview.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/sdview.cxx')
-rw-r--r--sd/source/ui/view/sdview.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/sdview.cxx b/sd/source/ui/view/sdview.cxx
index 5a2a0be72ce7..d36f81b1a604 100644
--- a/sd/source/ui/view/sdview.cxx
+++ b/sd/source/ui/view/sdview.cxx
@@ -1256,7 +1256,8 @@ void View::ChangeMarkedObjectsBulletsNumbering(
const SvxNumRule* pNumRule )
{
SdrModel* pSdrModel = GetModel();
- vcl::Window* pWindow = dynamic_cast< vcl::Window* >(GetFirstOutputDevice());
+ OutputDevice* pOut = GetFirstOutputDevice();
+ vcl::Window* pWindow = pOut ? pOut->GetOwnerWindow() : nullptr;
if (!pSdrModel || !pWindow)
return;