summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRegina Henschel <rb.henschel@t-online.de>2017-02-04 00:19:46 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-03-09 04:23:05 +0000
commit89f08aecf58c97cc75eaae1d7b5e8531b04eaccd (patch)
treec47340bb4a497648245e2f2bd0d07da1c7113e93
parent9a899023db876630b74493da588b4a5490f90894 (diff)
tdf#105656 only delete path if less than 2 points
This prevents the crash. It might be related to gerrit #/c/33654 Change-Id: I92907c7874964af722b69ed8afd9249e110b3401 Reviewed-on: https://gerrit.libreoffice.org/33907 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org> (cherry picked from commit 9e8f2afc2e2bbdbe136e74a24fb6c6eb94cde3c6) Reviewed-on: https://gerrit.libreoffice.org/34688 Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--svx/source/svdraw/svdopath.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index 1ba7ff83f623..21feaf92474a 100644
--- a/svx/source/svdraw/svdopath.cxx
+++ b/svx/source/svdraw/svdopath.cxx
@@ -879,7 +879,7 @@ bool ImpPathForDragAndCreate::endPathDrag(SdrDragStat& rDrag)
basegfx::B2DPolygon aCandidate(aTempPolyPolygon.getB2DPolygon(nPoly));
aCandidate.remove(nPnt);
- if((IsClosed(meObjectKind) && aCandidate.count() < 3L) || aCandidate.count() < 2L)
+ if(aCandidate.count() < 2L)
{
aTempPolyPolygon.remove(nPoly);
}