diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-07-16 12:50:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-07-16 20:33:33 +0200 |
commit | 50e2704c80b30934ba98001eb194eb5e6af56a65 (patch) | |
tree | 826398795b34a19debc54dacb4091eaad9821553 | |
parent | 7d22ed676d251f7a6587fe278456ebfdc6edde3b (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.cxx | 2 |
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; |