Kaydet (Commit) bd9762c0 authored tarafından Regina Henschel's avatar Regina Henschel

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: 's avatarRegina Henschel <rb.henschel@t-online.de>
üst 87fb1507
...@@ -408,11 +408,7 @@ sal_uInt32 SdrCircObj::GetHdlCount() const ...@@ -408,11 +408,7 @@ sal_uInt32 SdrCircObj::GetHdlCount() const
void SdrCircObj::AddToHdlList(SdrHdlList& rHdlList) const void SdrCircObj::AddToHdlList(SdrHdlList& rHdlList) const
{ {
sal_uInt32 nHdlCnt = 8; for (sal_uInt32 nHdlNum=(OBJ_CIRC==meCircleKind)?2:0; nHdlNum<=9; ++nHdlNum)
if (meCircleKind==OBJ_CIRC)
nHdlCnt += 2;
for (sal_uInt32 nHdlNum=0; nHdlNum<nHdlCnt; ++nHdlNum)
{ {
Point aPnt; Point aPnt;
SdrHdlKind eLocalKind(SdrHdlKind::Move); SdrHdlKind eLocalKind(SdrHdlKind::Move);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment