diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2022-05-13 14:02:14 +0100 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2022-05-17 13:37:46 +0200 |
commit | 96de6dee60aaf2f0d332291fa3b0ad7bb8b7127c (patch) | |
tree | 85ec470ef19e043439def5892c30de17b2d69900 /starmath/source/format.cxx | |
parent | 069f0eb13f7d26ce4b854160bbb9592c25609b38 (diff) |
tdf#65067 Remove excessive spacing from Formula objects
As described in bugs tdf#65067, tdf#103816, tdf#149052 and a few other duplicates, Formula objects in Writer receive 2 unnecessary spacings:
1) From the "Formula" frame style, which has a Left/Right internal spacing of 0.2cm
2) From the Math formula editor itself, that adds an additional 1pt of internal spacing (left/right)
In MS Word the default behavior is setting all of these spaces to zero, which makes the formula flow better alongside text in paragraphs.
Therefore, this patch set both of these spaces to Zero so that Formula objects in Writer behave similarly as Formulas in MS Word.
Change-Id: Iedcef7124afed6b799f85bcefe37016c8fd972e2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134185
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'starmath/source/format.cxx')
-rw-r--r-- | starmath/source/format.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/format.cxx b/starmath/source/format.cxx index a4bf960fd583..65ec09558d56 100644 --- a/starmath/source/format.cxx +++ b/starmath/source/format.cxx @@ -53,7 +53,7 @@ SmFormat::SmFormat() vDist[DIS_OPERATORSIZE] = 50; vDist[DIS_OPERATORSPACE] = 20; vDist[DIS_LEFTSPACE] = - vDist[DIS_RIGHTSPACE] = 100; + vDist[DIS_RIGHTSPACE] = 0; vDist[DIS_TOPSPACE] = vDist[DIS_BOTTOMSPACE] = vDist[DIS_NORMALBRACKETSIZE] = 0; |