[Libreoffice-commits] core.git: svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Sep 5 09:04:55 UTC 2019
svx/source/svdraw/svdmrkv.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 644211dbbacbaed27aad8e97e6fa14a0e93d0ecf
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 5 08:59:09 2019 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Thu Sep 5 11:04:06 2019 +0200
cid#1453561 Null pointer dereferences
Change-Id: If85383ac4c4e24eb10fed0c78fe879355bbc4fb6
Reviewed-on: https://gerrit.libreoffice.org/78626
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svx/source/svdraw/svdmrkv.cxx b/svx/source/svdraw/svdmrkv.cxx
index 4acee37ada36..8359566cf6df 100644
--- a/svx/source/svdraw/svdmrkv.cxx
+++ b/svx/source/svdraw/svdmrkv.cxx
@@ -826,8 +826,8 @@ void SdrMarkView::SetMarkHandles(SfxViewShell* pOtherShell)
if (mpMarkedObj && mpMarkedObj->GetObjIdentifier() == OBJ_TABLE)
{
- auto* pTableObject = dynamic_cast<sdr::table::SdrTableObj*>(mpMarkedObj);
- bTableSelection = pTableObject->createTableEdgesJson(aTableJsonTree);
+ auto& rTableObject = dynamic_cast<sdr::table::SdrTableObj&>(*mpMarkedObj);
+ bTableSelection = rTableObject.createTableEdgesJson(aTableJsonTree);
rtl::Reference<sdr::SelectionController> xController = static_cast<SdrView*>(this)->getSelectionController();
if (xController.is() && xController->hasSelectedCells())
More information about the Libreoffice-commits
mailing list