diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2023-07-07 11:54:02 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-07-09 08:33:53 +0200 |
commit | 9fefa504be3e5ef28a5ef9a0dab7be7044def3c0 (patch) | |
tree | b3bef8c7e649961c19b07df2266336da44f41fd2 | |
parent | 569260f8fa604e0f761d3c3057c959b4b402e930 (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>
-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 0593d26c268c..b92c024401d2 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 ) + |