diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-07-27 13:57:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-07-27 20:11:45 +0200 |
commit | 32baf8361a48f5238256acc101241d42c245a711 (patch) | |
tree | ca1e567d38af7873f0c0ffd33608e9a5d2a5f067 /svx/source | |
parent | db392a8a255326b7a094daeabd7fba195db6a9a5 (diff) |
cid#1489549 Uncaught exception
no need to check if mpPolygons is in use before deleting it
Change-Id: Ie4fdc35ca70fcef6985268dd317e34dde1ccc950
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119559
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/engine3d/view3d.cxx | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx index decbf61b7b0c..30fbcb64e24c 100644 --- a/svx/source/engine3d/view3d.cxx +++ b/svx/source/engine3d/view3d.cxx @@ -133,10 +133,7 @@ Impl3DMirrorConstructOverlay::~Impl3DMirrorConstructOverlay() // The OverlayObjects are cleared using the destructor of OverlayObjectList. // That destructor calls clear() at the list which removes all objects from the // OverlayManager and deletes them. - if(!mrView.IsSolidDragging()) - { - delete[] mpPolygons; - } + delete[] mpPolygons; } void Impl3DMirrorConstructOverlay::SetMirrorAxis(Point aMirrorAxisA, Point aMirrorAxisB) |