svx/source/svdraw/svdocapt.cxx |   15 +++++----------
 1 file changed, 5 insertions(+), 10 deletions(-)

New commits:
commit a35e7f38942ca3cc3b277692fae86d0787db934a
Author:     Regina Henschel <[email protected]>
AuthorDate: Thu Nov 8 18:35:48 2018 +0100
Commit:     Regina Henschel <[email protected]>
CommitDate: Sat Nov 10 12:58:42 2018 +0100

    tdf#121287 Use correct markers on tail of legacy callout
    
    A legacy callout from toolbar 'Text', not a custom shape, is a
    rectangle with an additional tail. Currently only the end of
    the tail is dragable. The error was, that all points of the tail
    had got markers and that the markers had got a wrong point reference.
    
    Change-Id: I900b1294aaeefc0f46547c6db009a3c750955460
    Reviewed-on: https://gerrit.libreoffice.org/63120
    Tested-by: Jenkins
    Reviewed-by: Regina Henschel <[email protected]>

diff --git a/svx/source/svdraw/svdocapt.cxx b/svx/source/svdraw/svdocapt.cxx
index 2fea3adbec97..ac2fde0070e3 100644
--- a/svx/source/svdraw/svdocapt.cxx
+++ b/svx/source/svdraw/svdocapt.cxx
@@ -297,16 +297,11 @@ sal_uInt32 SdrCaptionObj::GetHdlCount() const
 void SdrCaptionObj::AddToHdlList(SdrHdlList& rHdlList) const
 {
     SdrRectObj::AddToHdlList(rHdlList);
-    const sal_uInt32 nRectHdlCnt(rHdlList.GetHdlCount());
-
-    sal_uInt32 nCnt = aTailPoly.GetSize();
-    for(sal_uInt32 i = 0; i<nCnt; ++i)
-    {
-        std::unique_ptr<SdrHdl> pHdl(new SdrHdl(aTailPoly.GetPoint(i), 
SdrHdlKind::Poly));
-        pHdl->SetPolyNum(1);
-        pHdl->SetPointNum(nRectHdlCnt + i);
-        rHdlList.AddHdl(std::move(pHdl));
-    }
+    // Currently only dragging the tail's end is implemented.
+    std::unique_ptr<SdrHdl> pHdl(new SdrHdl(aTailPoly.GetPoint(0), 
SdrHdlKind::Poly));
+    pHdl->SetPolyNum(1);
+    pHdl->SetPointNum(0);
+    rHdlList.AddHdl(std::move(pHdl));
 }
 
 bool SdrCaptionObj::hasSpecialDrag() const
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to