diff options
Diffstat (limited to 'sw/source/core/sw3io/swacorr.cxx')
-rw-r--r-- | sw/source/core/sw3io/swacorr.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/sw3io/swacorr.cxx b/sw/source/core/sw3io/swacorr.cxx index 2ab8fdbd1faf..4b9aae4a5190 100644 --- a/sw/source/core/sw3io/swacorr.cxx +++ b/sw/source/core/sw3io/swacorr.cxx @@ -67,7 +67,7 @@ bool SwAutoCorrect::PutText( const uno::Reference < embed::XStorage >& rStg, const OUString& rFileName, const OUString& rShort, SfxObjectShell& rObjSh, OUString& rLong ) { - if( !rObjSh.IsA( TYPE(SwDocShell) ) ) + if( 0 == dynamic_cast<const SwDocShell*>( &rObjSh) ) return false; SwDocShell& rDShell = static_cast<SwDocShell&>(rObjSh); |