Another LayerData-related crash fix
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4950 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ef56e590dd
commit
b3d31bdb1a
@ -35,7 +35,7 @@ class FontStyle;
|
||||
class ServerFont
|
||||
{
|
||||
public:
|
||||
ServerFont(){ ServerFont(NULL); }
|
||||
ServerFont(void);
|
||||
ServerFont(FontStyle *fstyle, float fsize=12.0, float frotation=0.0, float fshear=90.0,
|
||||
uint16 flags=0, uint8 spacing=B_CHAR_SPACING);
|
||||
ServerFont(const ServerFont &font);
|
||||
|
@ -55,6 +55,21 @@ ServerFont::ServerFont(FontStyle *style, float size, float rotation, float shear
|
||||
fstyle->AddDependent();
|
||||
}
|
||||
|
||||
ServerFont::ServerFont(void)
|
||||
{
|
||||
fstyle=NULL;
|
||||
fsize=0.0;
|
||||
frotation=0.0;
|
||||
fshear=90.0;
|
||||
fflags=0;
|
||||
fspacing=B_STRING_SPACING;
|
||||
fdirection=B_FONT_LEFT_TO_RIGHT;
|
||||
fface=B_REGULAR_FACE;
|
||||
ftruncate=B_TRUNCATE_END;
|
||||
fencoding=B_UNICODE_UTF8;
|
||||
fbounds.Set(0,0,0,0);
|
||||
}
|
||||
|
||||
/*!
|
||||
\brief Copy Constructor
|
||||
\param font ServerFont to copy
|
||||
|
Loading…
x
Reference in New Issue
Block a user