diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-07-07 11:54:02 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2023-07-10 18:43:00 +0200 |
commit | c6619100ed6d0524ac5294c1a9e1467a4371aee0 (patch) | |
tree | 025c2b3dfa6fb5b4a23581915a49fafb2d1f32c4 /starmath | |
parent | 199dbff478dacee0b1d65d521e5147ba88c96567 (diff) |
math: set initial formula width to non-zero
After:
commit 96de6dee60aaf2f0d332291fa3b0ad7bb8b7127c
tdf#65067 Remove excessive spacing from Formula objects
Initial size of formula object is 1 (width).
This makes it ugly and hard to resize.
Let's make it bigger when it is empty.
Change-Id: I823de83b0f79a5a30c6ea6227f117daca3157e5f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154160
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 9fefa504be3e5ef28a5ef9a0dab7be7044def3c0)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154252
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/source/document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index 81187d376c4b..a62d1e949d1a 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -373,7 +373,7 @@ Size SmDocShell::GetSize() ArrangeFormula(); aRet = mpTree->GetSize(); - if ( !aRet.Width() ) + if ( !aRet.Width() || aRet.Width() == 1 ) aRet.setWidth( 2000 ); else aRet.AdjustWidth(maFormat.GetDistance( DIS_LEFTSPACE ) + |