summaryrefslogtreecommitdiff
path: root/sw/source/core/draw/dpage.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/draw/dpage.cxx')
-rw-r--r--sw/source/core/draw/dpage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/draw/dpage.cxx b/sw/source/core/draw/dpage.cxx
index db5707c3dcf7..1c83dd3d3a66 100644
--- a/sw/source/core/draw/dpage.cxx
+++ b/sw/source/core/draw/dpage.cxx
@@ -185,7 +185,7 @@ bool SwDPage::RequestHelp( vcl::Window* pWindow, SdrView* pView,
SdrPageView* pPV;
SdrObject* pObj;
if( pView->PickObj( aPos, 0, pObj, pPV, SdrSearchOptions::PICKMACRO ) &&
- pObj->ISA(SwVirtFlyDrawObj) )
+ dynamic_cast<const SwVirtFlyDrawObj*>( pObj) != nullptr )
{
SwFlyFrm *pFly = static_cast<SwVirtFlyDrawObj*>(pObj)->GetFlyFrm();
const SwFormatURL &rURL = pFly->GetFormat()->GetURL();