[Libreoffice-bugs] [Bug 117948] After hiding a column, saving and reopening, line is moved to a different column

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Thu Feb 13 23:11:53 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=117948

--- Comment #10 from Regina Henschel <rb.henschel at t-online.de> ---
The problem is in RecalcPos() in
https://opengrok.libreoffice.org/xref/core/sc/source/core/data/drwlayer.cxx?r=f147b160
starting from line #978. The comment indicates, that it assumes, that setting
the LogicRect will resize the shape. That is the case for most shapes, but not
for SdrPathObj. Here the size is contained in the coordinates of its points and
not in maRect.
Therefore
#996  pObj->SetLogicRect(aFullRect);
does not change the shape
and
#1001  const tools::Rectangle aObjRect(pObj->GetSnapRect());
does not return the expected rectangle.

Possible solutions:
A
Handle SdrPathObj different in drwlayer.cxx. (Ideas: Use NbcResize() of the
SdrPathObj or work on a copy of its maPathPolygon.)
B
Implement SetLogicRect for SdrPathObj so, that it resizes the shape. Currently
it has no own implementation but uses the inherited one from SdrTextObj.

A longer comment of the problems with maRect is in comment #1729-#1747 in
https://opengrok.libreoffice.org/xref/core/svx/source/svdraw/svdopath.cxx?r=1f625b3f

I'm not sure, which way would be better.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20200213/2ebb287f/attachment.htm>


More information about the Libreoffice-bugs mailing list