diff options
author | Regina Henschel <rb.henschel@t-online.de> | 2018-11-08 15:23:06 +0100 |
---|---|---|
committer | Regina Henschel <rb.henschel@t-online.de> | 2018-11-10 12:58:10 +0100 |
commit | bd9762c080aaa6b7e0f5e628a730ec2a594b9662 (patch) | |
tree | 4c0e3c72ab8c779547bb1fa236c95eadb4c0b008 /svx | |
parent | 87fb1507750269d43d518de895931fb4483a84ae (diff) |
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@t-online.de>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdocirc.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
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); |