summaryrefslogtreecommitdiff
path: root/sw/source/uibase/app/docst.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/uibase/app/docst.cxx')
-rw-r--r--sw/source/uibase/app/docst.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/app/docst.cxx b/sw/source/uibase/app/docst.cxx
index eb33d34d6c7c..ffbd62695004 100644
--- a/sw/source/uibase/app/docst.cxx
+++ b/sw/source/uibase/app/docst.cxx
@@ -1277,7 +1277,7 @@ void SwDocShell::_LoadStyles( SfxObjectShell& rSource, bool bPreserveCurrentDocu
*/
// When the source is our document, we do the checking ourselves
// (much quicker and doesn't use the crutch StxStylePool).
- if( rSource.ISA( SwDocShell ))
+ if( dynamic_cast<const SwDocShell*>( &rSource) != nullptr)
{
// in order for the Headers/Footers not to get the fixed content
// of the template, update all the Source's