incorrect image size when using subscript [PATCH]

Bug #1041219 reported by Marc Palmans
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
WPF-Math
New
Undecided
Unassigned

Bug Description

The bitmap size is calculated incorrectly when using subscript.

Index: ScriptsAtom.cs
===================================================================
--- ScriptsAtom.cs (revision 15583)
+++ ScriptsAtom.cs (revision 15584)
@@ -152,7 +152,7 @@
             // Check if only subscript is set.
             if (superscriptBox == null)
             {
- subscriptBox.Shift = Math.Max(Math.Max(shiftDown, texFont.GetSub1(style)), subscriptBox.Height - 4 *
+ subscriptContainerBox.Shift = Math.Max(Math.Max(shiftDown, texFont.GetSub1(style)), subscriptBox.Height - 4 *
                     Math.Abs(texFont.GetXHeight(style, lastFontId)) / 5);
                 resultBox.Add(subscriptContainerBox);
                 return resultBox;

Revision history for this message
Friedrich von Never (friedrich-v) wrote :

Hello, Marc!

Your patch has been merged into a project fork: https://github.com/ForNeVeR/wpf-math/pull/16

Thank you!

Also, all of your currently accessible patches were merged there, so thanks a lot for your work. Feel free to contribute to the fork if you wish.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.