summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2021-02-05 14:15:30 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2021-02-10 14:35:11 +0100
commitf21595cb5d9f978e11b23471671f11736c42e99d (patch)
tree60c3767698250906e5a20613e5f12e12af0bf6bd
parentd9224b193373937445f14ee3a06bb64de23505e2 (diff)
cid#1472783 avoid null pointer dereference
The target was created, but the pointer was not updated. Change-Id: I2e19ae3c84769de493f712f3189a2a506f173c0f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110476 Tested-by: Jenkins Reviewed-by: Regina Henschel <rb.henschel@t-online.de> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/110658 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
-rw-r--r--sc/source/core/data/drwlayer.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index b89db024a4a3..497ad478b146 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -2026,6 +2026,8 @@ void ScDrawLayer::MirrorRTL( SdrObject* pObj )
*pDoc, pData->maStart.Tab());
aNoRotateAnchor.mbResizeWithCell = pData->mbResizeWithCell;
SetNonRotatedAnchor(*pObj, aNoRotateAnchor);
+ pNoRotatedAnchor = GetNonRotatedObjData(pObj);
+ assert(pNoRotatedAnchor);
}
// Mirror object at vertical axis
Point aRef1( 0, 0 );