svx/source/svdraw/svdocirc.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit bd9762c080aaa6b7e0f5e628a730ec2a594b9662
Author:     Regina Henschel <rb.hensc...@t-online.de>
AuthorDate: Thu Nov 8 15:23:06 2018 +0100
Commit:     Regina Henschel <rb.hensc...@t-online.de>
CommitDate: Sat Nov 10 12:58:10 2018 +0100

    tdf#121271 Use correct handles for arc in 'Edit Point' mode
    
    Full circle and ellipse have eight handles, all other legacy circle
    kinds have two additional handles for to modify start and end angle.
    The error was, that the loop was not adapted at its start, but at its
    end, and the values 8 and 10 were interchanged.
    
    Change-Id: I13204382a21f1b7900f0eafa18960e401e5a0c9d
    Reviewed-on: https://gerrit.libreoffice.org/63103
    Tested-by: Jenkins
    Reviewed-by: Regina Henschel <rb.hensc...@t-online.de>

diff --git a/svx/source/svdraw/svdocirc.cxx b/svx/source/svdraw/svdocirc.cxx
index 347efdc30716..8c75e024a513 100644
--- a/svx/source/svdraw/svdocirc.cxx
+++ b/svx/source/svdraw/svdocirc.cxx
@@ -408,11 +408,7 @@ sal_uInt32 SdrCircObj::GetHdlCount() const
 
 void SdrCircObj::AddToHdlList(SdrHdlList& rHdlList) const
 {
-    sal_uInt32 nHdlCnt = 8;
-    if (meCircleKind==OBJ_CIRC)
-        nHdlCnt += 2;
-
-    for (sal_uInt32 nHdlNum=0; nHdlNum<nHdlCnt; ++nHdlNum)
+    for (sal_uInt32 nHdlNum=(OBJ_CIRC==meCircleKind)?2:0; nHdlNum<=9; 
++nHdlNum)
     {
         Point aPnt;
         SdrHdlKind eLocalKind(SdrHdlKind::Move);
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to