set color when using B_FONT_ALL or when using mode == 0

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9760 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
shatty 2004-11-03 10:15:11 +00:00
parent 2f597f2eb7
commit 23e2aae480
1 changed files with 1 additions and 1 deletions

View File

@ -467,7 +467,7 @@ _BStyleBuffer_::SetStyle(uint32 mode, const BFont *fromFont,
if (mode & B_FONT_SHEAR)
toFont->SetShear(fromFont->Shear());
if (!mode)
if (!mode || (mode == B_FONT_ALL))
*toColor = *fromColor;
}