Speedup for color lookups

Prevent crashes when things other than the server utilize LayerData objects


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4949 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
DarkWyrm
2003-10-05 17:40:20 +00:00
parent 3e6296ae57
commit ef56e590dd
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ public:
alphaFncMode = B_ALPHA_OVERLAY;
scale = 1.0;
fontAliasing = true;
font = *(fontserver->GetSystemPlain());
if(fontserver)
font = *(fontserver->GetSystemPlain());
clippReg = NULL;