* fExtraFlags was not maintained in various places, most importantly nowhere
in SetFamilyAndStyle(), this should fix stuff like IsFixed() not working git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22189 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
eb4ea3062e
commit
54a7f0923c
@ -572,6 +572,7 @@ BFont::SetFamilyAndStyle(const font_family family, const font_style style)
|
||||
link.Read<uint16>(&fStyleID);
|
||||
link.Read<uint16>(&fFace);
|
||||
fHeight.ascent = kUninitializedAscent;
|
||||
fExtraFlags = kUninitializedExtraFlags;
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
@ -612,6 +613,7 @@ BFont::SetFamilyAndStyle(uint32 fontcode)
|
||||
link.Read<uint16>(&fStyleID);
|
||||
link.Read<uint16>(&fFace);
|
||||
fHeight.ascent = kUninitializedAscent;
|
||||
fExtraFlags = kUninitializedExtraFlags;
|
||||
}
|
||||
|
||||
|
||||
@ -647,6 +649,7 @@ BFont::SetFamilyAndFace(const font_family family, uint16 face)
|
||||
link.Read<uint16>(&fStyleID);
|
||||
link.Read<uint16>(&fFace);
|
||||
fHeight.ascent = kUninitializedAscent;
|
||||
fExtraFlags = kUninitializedExtraFlags;
|
||||
|
||||
return B_OK;
|
||||
}
|
||||
@ -1367,6 +1370,8 @@ BFont::operator=(const BFont &font)
|
||||
fFace = font.fFace;
|
||||
fHeight = font.fHeight;
|
||||
fFlags = font.fFlags;
|
||||
fExtraFlags = font.fExtraFlags;
|
||||
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user