summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-16 12:50:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-16 20:33:33 +0200
commit50e2704c80b30934ba98001eb194eb5e6af56a65 (patch)
tree826398795b34a19debc54dacb4091eaad9821553
parent7d22ed676d251f7a6587fe278456ebfdc6edde3b (diff)
cid#1448279 Dereference before null check
Change-Id: I14e975f9bcb2b18a8dc12cef70478457391f72dc Reviewed-on: https://gerrit.libreoffice.org/75721 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sc/source/ui/view/drawview.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/view/drawview.cxx b/sc/source/ui/view/drawview.cxx
index b16ba1b75f5b..273431ef0bf5 100644
--- a/sc/source/ui/view/drawview.cxx
+++ b/sc/source/ui/view/drawview.cxx
@@ -899,7 +899,7 @@ SdrEndTextEditKind ScDrawView::ScEndTextEdit()
bool bIsTextEdit = IsTextEdit();
SdrEndTextEditKind eKind = SdrEndTextEdit();
- if ( bIsTextEdit && pViewData )
+ if (bIsTextEdit)
pViewData->GetViewShell()->SetDrawTextUndo(nullptr); // the "normal" undo manager
return eKind;