Bug 87811

Summary: Wrong text rotation inside a preset shape imported from docx
Product: LibreOffice Reporter: Gary Houston <ghouston>
Component: filters and storageAssignee: Not Assigned <libreoffice-bugs>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: medium CC: barta, philipz85, qubit
Version: 4.3.5.2 release   
Hardware: Other   
OS: All   
See Also: https://bugs.freedesktop.org/show_bug.cgi?id=87488
Whiteboard: bibisectRequest backportRequest:4.3 backportRequest:4.4
i915 platform: i915 features:
Attachments: Shape rotated 90 degrees containing text rotated 270 degrees.
screenshot 4.3.5 vs. 4.5.0 alpha
pdf export from word 2010

Description Gary Houston 2014-12-29 00:55:56 UTC
Created attachment 111442 [details]
Shape rotated 90 degrees containing text rotated 270 degrees.

This is similar to fdo#87488, since I was trying to make a test document for that. However in this case, the text is stored with different XML elements and so won't necessarily be processed the same way by LibreOffice. My patch for 87488 has no effect on this document.
	
The right-pointing arrow shape itself isn't rendered properly by 4.3.5.2, it displays as a rectangle. This seems to be fixed in Master.

The shape is rotated by 90 degrees and the text inside is supposed to be rotated by 270 degrees, so that it is displayed the right way up.

The document was created using Word 2010 on Windows by inserting a right-pointing arrow shape, rotating it by 90 degrees, selecting a point inside the shape and typing random text, then finding text direction properties in a menu and selecting 270 degrees. The net effect in Word is to rotate the shape by 90 degrees while displaying the text the right way up.
Comment 1 tommy27 2014-12-29 07:46:43 UTC
Created attachment 111458 [details]
screenshot 4.3.5 vs. 4.5.0 alpha

I confirm the bug is present under Win81 x64 using LibO 4.3.5 and that is not present in LibO 4.5.0.0.alpha0+
Build ID: 2a20bf5105181d51aab40bdd4ce8c09615a0e599
TinderBox: Win-x86@42, Branch:master, Time: 2014-12-25_07:55:29

hence the bug is fixed in the master branch so the status has to be changed to RESOLVED WORKSFORME

however a bibisect would be very helpful to identify the fixing committ and request it's backport to 4.3.x and 4.4.x

I'll add bibisectRequest to whiteboard. once this is done, please put backportRequest in the whiteboard.
Comment 2 tommy27 2014-12-29 07:48:09 UTC
@Gary
one more thing... what about the different font color, black in 4.3.x and white in 4.5.x ? which one is correct? is that another bug?
Comment 3 Jay Philips 2014-12-29 18:34:39 UTC
Text is white in Word 2010. The only difference between it and LO is the text is supposed to be horizontal.
Comment 4 Jay Philips 2014-12-29 18:35:16 UTC
Created attachment 111480 [details]
pdf export from word 2010
Comment 5 Robinson Tryon (qubit) 2014-12-29 20:05:45 UTC
(In reply to tommy27 from comment #1)
> however a bibisect would be very helpful to identify the fixing committ and
> request it's backport to 4.3.x and 4.4.x
> 
> I'll add bibisectRequest to whiteboard. once this is done, please put
> backportRequest in the whiteboard.

Please tag these bugs with 'backportRequest' right off the bat (in this case: backportRequest:4.3 backportRequest:4.4). Otherwise, I think it's really easy for them to get lost among any other bugs resolved as WFM.
Comment 6 Gary Houston 2014-12-29 21:44:54 UTC
If you want to fix it in 4.3, then you've got 3 problems: the shape itself, the text colour, and the text rotation. 

Oddly, in my build from Master the text rotation is still wrong, but otherwise it looks good.
Comment 7 Jay Philips 2015-01-01 00:37:58 UTC
Submitted the text direction problem in bug 87924.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.