diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 11:46:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-10-07 11:46:59 +0100 |
commit | e5dd19526fcdb2f9eb0e87017e33e9fd8402b028 (patch) | |
tree | 7b2aac570143d743ca51c50a7c9c36461ef14a71 /include/svtools | |
parent | 9cff818949f0a3d07c225c916c03097c6602e63b (diff) |
make font style size stable on switching fonts
Change-Id: I891fa5b9b8bd3be7dd4d73f2911ec56d16a3b09f
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/ctrlbox.hxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svtools/ctrlbox.hxx b/include/svtools/ctrlbox.hxx index b3a88dfbe6a1..061bb245a576 100644 --- a/include/svtools/ctrlbox.hxx +++ b/include/svtools/ctrlbox.hxx @@ -450,6 +450,8 @@ class SVT_DLLPUBLIC FontStyleBox : public ComboBox { OUString aLastStyle; + Size aOptimalSize; + private: using ComboBox::SetText; public: @@ -460,6 +462,7 @@ public: virtual void Select(); virtual void LoseFocus(); virtual void Modify(); + virtual Size GetOptimalSize() const; void SetText( const OUString& rText ); void Fill( const OUString& rName, const FontList* pList ); |