From a3b218e021c3b2d5263a34b1386c43dca8f8eaa9 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sun, 2 Mar 2014 15:11:48 +0000 Subject: coverity#704715 Dereference after null check Change-Id: Ifd5eb6ccc174d19eb045d5c3ca62846172b9bcc6 --- sc/source/ui/view/drawvie4.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sc/source/ui') diff --git a/sc/source/ui/view/drawvie4.cxx b/sc/source/ui/view/drawvie4.cxx index 3973d09622fc..3dbc28da822b 100644 --- a/sc/source/ui/view/drawvie4.cxx +++ b/sc/source/ui/view/drawvie4.cxx @@ -543,7 +543,7 @@ void ScDrawView::SetMarkedOriginalSize() } } - if (nDone) + if (nDone && pViewData) { pUndoGroup->SetComment(ScGlobal::GetRscString( STR_UNDO_ORIGINALSIZE )); ScDocShell* pDocSh = pViewData->GetDocShell(); -- cgit