* changed SetFont to acomodate(eng?) with LayerData's 'font' member witch is now allocated on stack.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4687 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -177,11 +177,8 @@ void Decorator::SetFont(ServerFont *font)
|
|||||||
{
|
{
|
||||||
if(!font)
|
if(!font)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(_layerdata.font)
|
_layerdata.font = *font;
|
||||||
delete _layerdata.font;
|
|
||||||
|
|
||||||
_layerdata.font=new ServerFont(*font);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
@@ -605,3 +602,7 @@ void Decorator::_DoLayout(void)
|
|||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
@log
|
||||||
|
* changed SetFont to acomodate(eng?) with LayerData's 'font' member witch is now allocated on stack.
|
||||||
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user