diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-02-19 22:23:32 +0100 |
---|---|---|
committer | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-02-19 23:38:17 +0100 |
commit | f0485ba2d90aae0312f5775588f22789016165d2 (patch) | |
tree | 426cfdbcafd4097da042ac050652e7fc1af6fe8b /include | |
parent | 59c95b3992002bd408ad2d11df61468dcd284d82 (diff) |
tdf#115639: Handle alignment correctly for multiple paragraph case
I used the wrong calculator method to get the line width.
This commit also fixes the crashes found by crashtest.
Change-Id: I25392f86af912ee54c07b14480d82282210ac346
Reviewed-on: https://gerrit.libreoffice.org/49994
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/editeng.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index a8e7b83e8b43..5ed549776f82 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -273,7 +273,7 @@ public: sal_uInt32 GetTextLen() const; sal_uInt32 GetTextHeight() const; sal_uInt32 GetTextHeightNTP() const; - sal_uInt32 CalcTextWidth( bool bIgnoreTrailingWhiteSpaces = false ); + sal_uInt32 CalcTextWidth(); OUString GetText( sal_Int32 nParagraph ) const; sal_Int32 GetTextLen( sal_Int32 nParagraph ) const; |