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:
parent
2f597f2eb7
commit
23e2aae480
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user