Opened 14 years ago

Closed 14 years ago

#1260 closed defect (fixed)

MText stack code draws invalid line

Reported by: waltweltonlair Owned by: waltweltonlair
Priority: low Milestone: 2.3
Component: Rendering Service Version: 2.2.0
Severity: minor Keywords:
Cc: External ID:

Description

The MText stack code \S can be used to draw a fraction. I found some bugs with the implementation:

  • In the case where the numerator is wider than the denominator the code is drawing the denominator underlined.
  • Underline and overline settings that are enabled before the stack code are not handled properly: text within the stack as well as text following the stack is not correctly underlined / overlined.

Attachments (3)

BadBehavior.png (9.6 KB ) - added by waltweltonlair 14 years ago.
Image showing the bugs
GoodBehavior.png (9.5 KB ) - added by waltweltonlair 14 years ago.
Image showing the corrected behavior.
SymbologyPoints.sd (1.8 KB ) - added by waltweltonlair 14 years ago.
Symbol definition used for testing

Download all attachments as: .zip

Change History (7)

comment:1 by waltweltonlair, 14 years ago

Status: newassigned

comment:2 by waltweltonlair, 14 years ago

Severity: trivialminor

by waltweltonlair, 14 years ago

Attachment: BadBehavior.png added

Image showing the bugs

comment:3 by waltweltonlair, 14 years ago

Attached an image showing the incorrect behavior. The top row has overline enabled for the whole string, while the bottom row has underline enabled. The left column has the numerator narrower than the denominator, while the right column has the numerator wider than the denominator.

by waltweltonlair, 14 years ago

Attachment: GoodBehavior.png added

Image showing the corrected behavior.

by waltweltonlair, 14 years ago

Attachment: SymbologyPoints.sd added

Symbol definition used for testing

comment:4 by waltweltonlair, 14 years ago

Resolution: fixed
Status: assignedclosed

Fixed in trunk with r4572.

Note: See TracTickets for help on using tickets.