Bug 119794 - Formula objects cut off vector arrows
Summary: Formula objects cut off vector arrows
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.1.6.2 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-10 21:36 UTC by dmhymers
Modified: 2018-09-13 09:20 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot showing rendering errors (37.36 KB, image/png)
2018-09-10 21:37 UTC, dmhymers
Details
File which displays rendering errors, source for screenshot (21.78 KB, application/vnd.oasis.opendocument.text)
2018-09-10 21:38 UTC, dmhymers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dmhymers 2018-09-10 21:36:24 UTC
Description:
The vector arrow placed over elements in the formula editor renders outside the border of the formula when shown in Writer. This issue occurs for arrows produced by both 'vec' and 'widevec', but does not apply to other modifiers drawn above characters, such as 'bar' and 'hat'. Including 'bar' or 'hat' in the same line, or extending the height of the formula by other means, reveals that the vector arrows are drawn, but are cut off by the bounds of the rendering window.

Vector arrows are visible while the equation editor is open, but are not rendered properly once the editor is closed and editing the document resumes. They are also not printed properly, or exported properly to PDF.

A similar bug appears if a vector arrow is placed above an element in the denominator of a fraction expression; the arrow overlaps the horizontal dividing line. In this case, the arrow is also not visible while the equation editor is open.

It seems that the vector arrow may not be marked as having height, so it does not move the formula border or other elements, such that it can be drawn unobscured. 

Steps to Reproduce:
1. Open formula editor in a new blank document
2. Enter the formula "vec E = - vec nabla V"
3. Close the formula editor

Actual Results:
Vector arrows above E and nabla are not visible. It is evident that some accent is present above E, but the nature of the accent is not apparent.

Expected Results:
Vector arrows above E and nabla are rendered within the object.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 5.1.6.2
Build ID: 1:5.1.6~rc2-0ubuntu1~xenial4
CPU Threads: 4; OS Version: Linux 4.15; UI Render: default; 
Locale: en-CA (en_CA.UTF-8); Calc: group
Comment 1 dmhymers 2018-09-10 21:37:55 UTC
Created attachment 144775 [details]
Screenshot showing rendering errors
Comment 2 dmhymers 2018-09-10 21:38:50 UTC
Created attachment 144776 [details]
File which displays rendering errors, source for screenshot
Comment 3 V Stuart Foote 2018-09-11 01:20:11 UTC
Can not confirm on 6.1.0.3 release, or recent master/6.2.0 build

Reopening the sample document (attachment 144776 [details]) retains the original scaling, expected.  Simply focusing on each formula to refresh its OLE with current sm rendering results in correct scaling for all sm nodes/elements in the formulas.

Please retest with current/spported build of LibreOffice.
Comment 4 dmhymers 2018-09-11 02:55:37 UTC
Updating to newer version 6.0 has resolved. Marked as such.
Comment 5 dmhymers 2018-09-11 02:56:01 UTC Comment hidden (obsolete)
Comment 6 Xisco Faulí 2018-09-13 09:20:59 UTC
Thanks for retesting with the latest version.
Setting to RESOLVED WORKSFORME as the commit fixing this issue hasn't been identified.