summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-03-07 17:18:28 -0600
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-03-07 20:33:56 -0600
commit7adc93712e92afcd7e6db9f9d56dfa516d9b5573 (patch)
tree59bf3025a8fec19567aad64cae90896aa59d1474 /sc/source
parent3008cb63f784634bcffc1267f069095149d0602c (diff)
coverity#704689 Unchecked dynamic cast
Change-Id: I3c321b6008bccb4f67a023b34a5cf02d465b2909
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/app/scmod.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 26ce72d8a80d..8aad9111447e 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -1685,7 +1685,8 @@ bool ScModule::IsModalMode(SfxObjectShell* pDocSh)
if ( pChildWnd )
{
IAnyRefDialog* pRefDlg = dynamic_cast<IAnyRefDialog*>(pChildWnd->GetWindow());
- bIsModal = pChildWnd->IsVisible() &&
+ assert(pRefDlg);
+ bIsModal = pChildWnd->IsVisible() && pRefDlg &&
!( pRefDlg->IsRefInputMode() && pRefDlg->IsDocAllowed(pDocSh) );
}
else if(pModalDlg)