[lasem] menclose: fix bounding box



commit e2e54de5effe731ea8f3584ae073668a9807233f
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon Feb 2 23:33:03 2015 +0100

    menclose: fix bounding box

 src/lsmmathmlview.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/lsmmathmlview.c b/src/lsmmathmlview.c
index 37b1806..c39f822 100644
--- a/src/lsmmathmlview.c
+++ b/src/lsmmathmlview.c
@@ -861,8 +861,8 @@ lsm_mathml_view_measure_notation (LsmMathmlView *view,
 
        if (notation >= 0 && notation < LSM_MATHML_NOTATION_LAST) {
                bbox->width += base_x * (notation_padding[notation].left + notation_padding[notation].right);
-               bbox->height += base_y * (notation_padding[notation].top + notation_padding[notation].bottom);
-               bbox->depth += base_y * (notation_padding[notation].bottom);
+               bbox->height += base_y * notation_padding[notation].top;
+               bbox->depth += base_y * notation_padding[notation].bottom;
 
                if (notation == LSM_MATHML_NOTATION_LONGDIV) {
                        bbox->width += bbox->height / 2.0;
@@ -954,7 +954,7 @@ lsm_mathml_view_show_notation (LsmMathmlView *view,
 
        y = y + bbox->depth;
        x1 = x + bbox->width;
-       y1 = y - bbox->height;
+       y1 = y - bbox->height - bbox->depth;
 
        cairo = view->dom_view.cairo;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]