diff options
Diffstat (limited to 'include/vcl/texteng.hxx')
-rw-r--r-- | include/vcl/texteng.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx index 7e6c9d452590..95da903bc1d4 100644 --- a/include/vcl/texteng.hxx +++ b/include/vcl/texteng.hxx @@ -106,6 +106,7 @@ class VCL_DLLPUBLIC TextEngine : public SfxBroadcaster std::unique_ptr<LocaleDataWrapper> mpLocaleDataWrapper; vcl::Font maFont; + vcl::Font maOrigFont; // original font from SetFont Color maTextColor; sal_Int32 mnMaxTextLen; @@ -220,7 +221,7 @@ public: sal_Int32 GetTextLen( const TextSelection& rSel ) const; void SetFont( const vcl::Font& rFont ); - const vcl::Font& GetFont() const { return maFont; } + const vcl::Font& GetFont() const { return maOrigFont; } void SetLeftMargin( sal_uInt16 n ); |