diff options
author | Armin Le Grand <alg@apache.org> | 2014-04-23 16:19:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-24 15:03:07 +0100 |
commit | 121aac37673c1a8142db01e26e50be6de7b36987 (patch) | |
tree | 990c563382f8acf269310778c3da094c27e7eb87 /vcl/source | |
parent | af32c90a8fa8f338659267c0d0c5e9e2d0663a50 (diff) |
Related: #i124686# give empty constructed default font a default height
(cherry picked from commit 4a7c54e07713f02a5658471e4aa9163de53f7460)
Change-Id: Iaff17eb95d1ad1e1b9bca4388b03703899d9a0db
Diffstat (limited to 'vcl/source')
-rw-r--r-- | vcl/source/gdi/font.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/gdi/font.cxx b/vcl/source/gdi/font.cxx index 489304e7cb9a..60230e31d618 100644 --- a/vcl/source/gdi/font.cxx +++ b/vcl/source/gdi/font.cxx @@ -63,6 +63,12 @@ Impl_Font::Impl_Font() : mbVertical = false; mbTransparent = true; mbConfigLookup = false; + + // #i124686# the Size is defaulted to (0,0) when default constructed, + // this is not useful for a default font. Init it to a useful default + // so that the Font::Font() constructor which uses a 'naked' static + // Impl_Font instance (aStaticImplFont) creates a useful default font + maSize = Size(0, 16); } Impl_Font::Impl_Font( const Impl_Font& rImplFont ) |