Bug Hunting Session
Bug 125986 - After pasting Excel table as EMF into right aligned paragraph, export to PDF is incorrect
Summary: After pasting Excel table as EMF into right aligned paragraph, export to PDF ...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.0.3 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected, regression
Depends on:
Blocks: RTL-CTL PDF-Export EMF-WMF
  Show dependency treegraph
 
Reported: 2019-06-18 12:41 UTC by Erez W
Modified: 2019-08-05 14:28 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
A document on which this problem can be reproduced (14.32 KB, application/vnd.openxmlformats-officedocument.wordprocessingml.document)
2019-06-18 12:44 UTC, Erez W
Details
Screenshot of the bug - LibreOffice Writer vs generated PDF (186.10 KB, image/png)
2019-06-18 12:46 UTC, Erez W
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Erez W 2019-06-18 12:41:53 UTC
Description:
I use Excel 2010 and Word 2010 to create the document.
After copying from Excel and "pasting as EMF" into Word in RTL paragraph, and exporting to PDF, the PDF does not look correct.

Steps to Reproduce:
1) Fill some cells in Excel spreadsheet
2) Create a new Word document and change direction to RTL (ctrl+right shift)
3) Select the cells in Excel and copy
4) In Word, select Paste Special...
5) Choose "Picture (Enhanced Metafile)"
6) Save the file in Word
7) Open the file in LibreOffice Writer
8) Observe that it renders correctly
9) Choose File -> Export As -> Export Directly as PDF, then Export
10) Open the file in a PDF viewer

Actual Results:
The text is moved/invisible

Expected Results:
PDF should look like original document


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 Erez W 2019-06-18 12:44:22 UTC
Created attachment 152271 [details]
A document on which this problem can be reproduced
Comment 2 Erez W 2019-06-18 12:46:26 UTC
Created attachment 152272 [details]
Screenshot of the bug - LibreOffice Writer vs generated PDF
Comment 3 Dieter Praas 2019-06-20 12:13:57 UTC
I confirm it with document from comment 2 and

Version: 6.4.0.0.alpha0+ (x64)
Build ID: b170256fb6ebaf774b02b89835b19d9f3a1afb89
CPU threads: 4; OS: Windows 10.0; UI render: default; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2019-06-07_03:30:35
Locale: de-DE (de_DE); UI-Language: en-US
Calc: threaded
Comment 4 Xisco Faulí 2019-06-28 14:27:38 UTC
No reproduced in

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e
Comment 5 Xisco Faulí 2019-06-28 14:31:06 UTC
Also fine in

Version: 5.2.0.0.alpha1+
Build ID: 5b168b3fa568e48e795234dc5fa454bf24c9805e
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; 
Locale: ca-ES (ca_ES.UTF-8
Comment 6 Erez W 2019-06-30 07:00:01 UTC
Tested on some old versions, all on Win7 x64
5.2.0.1	no bug
5.2.4.2	no bug
5.2.7.2	no bug
5.4.7.2	no bug
6.0.0.0.alpha1	broken
6.0.0.0.beta1	broken
6.0.0.0.beta2	broken
6.0.0.1	broken
6.0.0.2	broken
Comment 7 Xisco Faulí 2019-08-05 14:28:11 UTC
Regression introduced by:

https://cgit.freedesktop.org/libreoffice/core/commit/?id=ebc11ae0b132eefd3b1b1a837a8d0ad3ba73b460

author	Thorsten Behrens <Thorsten.Behrens@CIB.de>	2017-08-21 22:44:30 +0200
committer	Thorsten Behrens <Thorsten.Behrens@CIB.de>	2017-08-22 12:28:57 +0200
commit	ebc11ae0b132eefd3b1b1a837a8d0ad3ba73b460 (patch)
tree	599ae51a0a42b111f245697e7ad86b7f85681798
parent	a3782f1152e4cf02f30003b5f96c7ba603a87db9 (diff)
emfplus: cut over to new EMF+ renderer

Bisected with: bibisect-linux64-6.0

Adding Cc: to Thorsten Behrens