[Libreoffice-bugs] [Bug 139049] New: Copy image from left-to-right sheet and paste into right-to-left (RTL) sheet gives wrong image position
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Dec 18 23:07:59 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=139049
Bug ID: 139049
Summary: Copy image from left-to-right sheet and paste into
right-to-left (RTL) sheet gives wrong image position
Product: LibreOffice
Version: Inherited From OOo
Hardware: x86-64 (AMD64)
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: rb.henschel at t-online.de
Created attachment 168312
--> https://bugs.documentfoundation.org/attachment.cgi?id=168312&action=edit
Spreadsheet with LTR and RTL sheet, to test copy&past between them
Open attached document.
Go to Sheet_LTR. It should have an image in the range D3:D6. If the image is
outside that range, drag it to the range, so that its anchor is D3.
Copy the range D3:D6 including the image.
Go to Sheet_RTL.
Paste the clipboard to D3.
Notice, the image is not in range D3:D6.
The error is likely
1983 tools::Rectangle aObjRect = pObj->GetLogicRect();
https://opengrok.libreoffice.org/xref/core/sc/source/core/data/drwlayer.cxx?r=60ae45f5#1983
If I change it to
1983 tools::Rectangle aObjRect = pObj->GetSnapRect();
paste uses the correct position.
But I have not tested, what impacts this change has in other places, that use
ScDrawLayer::MirrorRTL().
--
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/20201218/d6a0c81f/attachment.htm>
More information about the Libreoffice-bugs
mailing list