[Libreoffice-commits] core.git: svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Sat Nov 10 11:58:32 UTC 2018


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

New commits:
commit bd9762c080aaa6b7e0f5e628a730ec2a594b9662
Author:     Regina Henschel <rb.henschel at t-online.de>
AuthorDate: Thu Nov 8 15:23:06 2018 +0100
Commit:     Regina Henschel <rb.henschel at 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.henschel at 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);


More information about the Libreoffice-commits mailing list