svx/source/svdraw/svdopath.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 89f08aecf58c97cc75eaae1d7b5e8531b04eaccd
Author: Regina Henschel <rb.hensc...@t-online.de>
Date:   Sat Feb 4 00:19:46 2017 +0100

    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 <c...@libreoffice.org>
    Reviewed-by: jan iversen <j...@documentfoundation.org>
    (cherry picked from commit 9e8f2afc2e2bbdbe136e74a24fb6c6eb94cde3c6)
    Reviewed-on: https://gerrit.libreoffice.org/34688
    Reviewed-by: Thorsten Behrens <thorsten.behr...@cib.de>

diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx
index 1ba7ff8..21feaf9 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);
                 }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to