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: [email protected]
Reporter: [email protected]
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._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs