Bug 106545 - Rotated text in cell is invisible with OpenGL enabled
Summary: Rotated text in cell is invisible with OpenGL enabled
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.3.1.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: VCL-OpenGL
  Show dependency treegraph
 
Reported: 2017-03-15 09:55 UTC by Andrzej
Modified: 2017-03-27 19:00 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Calc bad displays rotated content cell (103.85 KB, image/png)
2017-03-15 10:33 UTC, Andrzej
Details
LO Safe mode (86.89 KB, image/png)
2017-03-15 11:20 UTC, Andrzej
Details
After reset Libreoffice profile (128.45 KB, image/png)
2017-03-15 11:20 UTC, Andrzej
Details
Disable OpenGL (173.97 KB, image/png)
2017-03-16 09:37 UTC, Andrzej
Details
opengl_device.log (315 bytes, text/plain)
2017-03-16 11:32 UTC, Andrzej
Details
LO-5.3.2 with enable OpenGL (125.90 KB, image/png)
2017-03-27 17:54 UTC, Andrzej
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrzej 2017-03-15 09:55:27 UTC
Description:
Calc bad displays rotated content when you use the menu Text orientation.

Steps to Reproduce:
1. Create a new or open an existing workbook
2. In any cell, type any text or number
3. The right mouse button on a cell with content-> Format cells-> tab Alignment-> Text orientation, and then set the angle 45-90 degrees, to see that Calc bad displays rotated content

Actual Results:  
Bad displays rotated content cell

Expected Results:
You need to correct an error in the software


Reproducible: Always

User Profile Reset: No

Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36 OPR/43.0.2442.1144
Comment 1 Xisco Faulí 2017-03-15 10:10:45 UTC Comment hidden (obsolete)
Comment 2 Andrzej 2017-03-15 10:33:22 UTC
Created attachment 131898 [details]
Calc bad displays rotated content cell
Comment 3 Xisco Faulí 2017-03-15 11:01:37 UTC
I can't reproduce it in

Versión: 5.3.1.1
Id. de compilación: 72fee18f394a980128dc111963f2eefb05998eeb
Subpr. de CPU: 1; SO: Windows 6.1; Repr. de IU: predet.; Motor de trazado: HarfBuzz; 
Configuración regional: es-ES (es_ES); Calc: group

neither.

Do you have OpenCL enabled (Tools- Options - OpenCL? if yes, what happens if you disable it ? On the other hand, could you please reset your Libreoffice profile ( https://wiki.documentfoundation.org/UserProfile ) and re-test?
Comment 4 Andrzej 2017-03-15 11:20:09 UTC
Created attachment 131899 [details]
LO Safe mode
Comment 5 Andrzej 2017-03-15 11:20:45 UTC
Created attachment 131900 [details]
After reset Libreoffice profile
Comment 6 Andrzej 2017-03-15 11:36:56 UTC
I installed the LO on a clean windows 10 x64 and this problem is only with version 5.3
Comment 7 Buovjaga 2017-03-16 08:49:57 UTC
So in safe mode it works for you.

Does the problem go away, if you disable Tools - Options - LibO - View - Use OpenGL for all rendering?

OpenGL is for display, OpenCL is for calculation and should not affect the display in such a way.
Comment 8 Andrzej 2017-03-16 09:37:25 UTC
Created attachment 131923 [details]
Disable OpenGL

Disable OpenGL solves the problem. Calc now correctly displays the contents of a cell when it is rotated.

Thanks for your help.
Comment 9 Buovjaga 2017-03-16 09:55:21 UTC
I found another person from this: https://bugs.documentfoundation.org/show_bug.cgi?id=94917#c37

(In reply to efernandeza@sinectis.com.ar)
>  The problem still persists in Libreoffice 5.3.0.3. With OpenGL active, I
> cannot rotate text inside a cell in Calc.

Please, both Andrzej and E.F.A.: copy and paste to a comment here the contents of your C:\Users\User\AppData\Roaming\LibreOffice\4\cache\opengl_device.log

After that we can think about the next steps for testing. Stuart said rotated text with OGL is rock solid in 5.3.2: https://bugs.documentfoundation.org/show_bug.cgi?id=94700#c14
Comment 10 Andrzej 2017-03-16 11:32:16 UTC
Created attachment 131926 [details]
opengl_device.log
Comment 11 V Stuart Foote 2017-03-16 13:30:55 UTC
Believe this has been corrected for the 5.3.2 build for bug 103831.

http://cgit.freedesktop.org/libreoffice/core/commit/?id=4375eefb644d03ab4bafbc091436166a8494dc91&h=libreoffice-5-3

or on master

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

Where we've dropped DrirectWrite Direc2D for OpenGL rendering to use GDI calls
for scaling and "non-horizontal" glyphs.

Please test with a TB nightly [1][2] and if so close as Resolved.


=-ref-=
[1] https://wiki.documentfoundation.org/Installing_in_parallel
[2] http://dev-builds.libreoffice.org/daily/libreoffice-5-3/Win-x86@62-merge-TDF/
Comment 12 Andrzej 2017-03-27 17:54:05 UTC
Created attachment 132196 [details]
LO-5.3.2 with enable OpenGL

The problem has been resolved in LO 5.3.2.0.0

Thank you all.
Comment 13 Buovjaga 2017-03-27 18:17:46 UTC
Minor thing, but Stuart: should we keep status as fixed per your guess in comment 11?
Comment 14 V Stuart Foote 2017-03-27 18:45:08 UTC
A bit more than a guess ;-) 

Work done on scaling, noted comment 11, also fixed this.
Comment 15 Xisco Faulí 2017-03-27 19:00:18 UTC
(In reply to V Stuart Foote from comment #14)
> A bit more than a guess ;-) 
> 
> Work done on scaling, noted comment 11, also fixed this.

Ok, sorry for that. I didn't read your comment