<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - Copy image from left-to-right sheet and paste into right-to-left (RTL) sheet gives wrong image position"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=139049">139049</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Copy image from left-to-right sheet and paste into right-to-left (RTL) sheet gives wrong image position
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>Inherited From OOo
</td>
</tr>
<tr>
<th>Hardware</th>
<td>x86-64 (AMD64)
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows (All)
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Calc
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>rb.henschel@t-online.de
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=168312" name="attach_168312" title="Spreadsheet with LTR and RTL sheet, to test copy&past between them">attachment 168312</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=168312&action=edit" title="Spreadsheet with LTR and RTL sheet, to test copy&past between them">[details]</a></span>
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();
<a href="https://opengrok.libreoffice.org/xref/core/sc/source/core/data/drwlayer.cxx?r=60ae45f5#1983">https://opengrok.libreoffice.org/xref/core/sc/source/core/data/drwlayer.cxx?r=60ae45f5#1983</a>
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().</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>