BTextView: add handling of B_FONT_FACE mask to SetFontAndColor

The B_FONT_FACE mask would be ignored, making it impossible to change
only the font face.

Thanks to samgtr for finding the bug!
This commit is contained in:
Adrien Destugues
2015-02-04 09:23:23 +01:00
parent eca5549602
commit 5fbf0afd91
@@ -165,6 +165,9 @@ SetStyleFromMode(uint32 mode, const BFont *fromFont, BFont *toFont,
if (mode & B_FONT_FAMILY_AND_STYLE)
toFont->SetFamilyAndStyle(fromFont->FamilyAndStyle());
if (mode & B_FONT_FACE)
toFont->SetFace(fromFont->Face());
if (mode & B_FONT_SIZE)
toFont->SetSize(fromFont->Size());