diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-06 21:50:53 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-06-06 21:58:09 +0200 |
commit | a1ae30166e92a0a40dff06740f0bb8e9ee63f70a (patch) | |
tree | f5020467afb9bd47282817b29605ea2dc483db2d /include/svx/svdotext.hxx | |
parent | 2671476e7c8acc6569840e66e6d306b890b431fd (diff) |
Fix and unify the two methods that get scaled text size
GetTextFitToSizeScale and SdrTextObj::GetFontScaleY both didn't
initialize outliners properly, and thus returned wrong results.
Change-Id: I6fe63c51ed838a0d0fafdfa03597cac97ce29831
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116765
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'include/svx/svdotext.hxx')
-rw-r--r-- | include/svx/svdotext.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/svx/svdotext.hxx b/include/svx/svdotext.hxx index 61a63f660950..a3ff2e1fda50 100644 --- a/include/svx/svdotext.hxx +++ b/include/svx/svdotext.hxx @@ -392,7 +392,7 @@ public: // FitToSize and Fontwork are not taken into account in GetTextSize()! virtual const Size& GetTextSize() const; void FitFrameToTextSize(); - double GetFontScaleY() const; + sal_uInt16 GetFontScaleY() const; // Simultaneously sets the text into the Outliner (possibly // the one of the EditOutliner) and sets the PaperSize. |