Hi,
I was debugging the problem mentioned in fdo#45260 and found a strange
problem.
Copy uses BoundRect()
http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/sdview2.cxx#133
while Paste uses SnapRect()
http://opengrok.libreoffice.org/xref/core/sd/source/ui/view/sdview3.cxx#631
And unfortunately both have a comment warning it shouldn't be changed to
other :(
[But, changing one of them to use common Rect() fixes the issue]
Since the comment in sdview2.cxx is specific to lines and using
SnapRect() there solves the issue, would this be safe to fix it that
way, please? Or am I missing some vital information?
Thank you so much!
Muthu Subramanian
Context
- [Review] fdo#45260 Fixes: objects having line thickness misplaced while pasting · Muthu Subramanian K
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.