You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openoffice.apache.org by al...@apache.org on 2014/04/23 18:19:30 UTC
svn commit: r1589449 - /openoffice/trunk/main/vcl/source/gdi/font.cxx
Author: alg
Date: Wed Apr 23 16:19:30 2014
New Revision: 1589449
URL: http://svn.apache.org/r1589449
Log:
i124686 give empty constructed default font a default height
Modified:
openoffice/trunk/main/vcl/source/gdi/font.cxx
Modified: openoffice/trunk/main/vcl/source/gdi/font.cxx
URL: http://svn.apache.org/viewvc/openoffice/trunk/main/vcl/source/gdi/font.cxx?rev=1589449&r1=1589448&r2=1589449&view=diff
==============================================================================
--- openoffice/trunk/main/vcl/source/gdi/font.cxx (original)
+++ openoffice/trunk/main/vcl/source/gdi/font.cxx Wed Apr 23 16:19:30 2014
@@ -74,6 +74,12 @@ Impl_Font::Impl_Font() :
mbVertical = false;
mbTransparent = true;
mbConfigLookup = false;
+
+ // #124686# 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);
}
// -----------------------------------------------------------------------