Code

Compute baseline-shift relative to parent baseline-shift.
authortavmjong-free <tavmjong@free.fr>
Sun, 6 Jun 2010 19:55:16 +0000 (21:55 +0200)
committertavmjong-free <tavmjong@free.fr>
Sun, 6 Jun 2010 19:55:16 +0000 (21:55 +0200)
src/style.cpp

index 9c82b1b7a3bcbb60edb132dcf20e0c9c141c51ff..b3cc370f9cdb39cb97ac2ae212c5d63da7178dc4 100644 (file)
@@ -1396,6 +1396,8 @@ sp_style_merge_baseline_shift_from_parent(SPIBaselineShift &child, SPIBaselineSh
                 break;
         }
     }
+    // baseline-shifts are relative to parent baseline
+    child.computed += parent.computed;
 }
 
 /**