summaryrefslogtreecommitdiff
path: root/sw/source/uibase/docvw/edtdd.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/docvw/edtdd.cxx')
-rw-r--r--sw/source/uibase/docvw/edtdd.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/docvw/edtdd.cxx b/sw/source/uibase/docvw/edtdd.cxx
index 4ac525caab58..81ca453323f7 100644
--- a/sw/source/uibase/docvw/edtdd.cxx
+++ b/sw/source/uibase/docvw/edtdd.cxx
@@ -293,7 +293,7 @@ SotExchangeDest SwEditWin::GetDropDestination( const Point& rPixPnt, SdrObject *
}
break;
case OBJCNT_FLY:
- if( rSh.GetView().GetDocShell()->ISA(SwWebDocShell) )
+ if( dynamic_cast< const SwWebDocShell *>( rSh.GetView().GetDocShell() ) != nullptr )
nDropDestination = SotExchangeDest::DOC_TEXTFRAME_WEB;
else
nDropDestination = SotExchangeDest::DOC_TEXTFRAME;
@@ -309,7 +309,7 @@ SotExchangeDest SwEditWin::GetDropDestination( const Point& rPixPnt, SdrObject *
}
if ( !bool(nDropDestination) )
{
- if( rSh.GetView().GetDocShell()->ISA(SwWebDocShell) )
+ if( dynamic_cast< const SwWebDocShell *>( rSh.GetView().GetDocShell() ) != nullptr )
nDropDestination = SotExchangeDest::SWDOC_FREE_AREA_WEB;
else
nDropDestination = SotExchangeDest::SWDOC_FREE_AREA;