mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 12:55:46 +00:00
Forgot to set fe_data in the text attr struct when dealing with fonts.
This commit is contained in:
parent
9b5baab042
commit
6051b4342b
@ -98,7 +98,10 @@ HyperStyle::HyperStyle( MWContext *context, const CCharSet* charSet, LO_TextAttr
|
||||
fAttr = *attr;
|
||||
fAttr.size *= context->fontScalingPercentage;
|
||||
|
||||
fFontReference = CFontReference::GetFontReference(charSet, attr, context, sUnderlineLinks);
|
||||
// GetFontReference() stashes font info into fAttr->FE_Data so we need to make sure that
|
||||
// we propogate that info to the attribute struct that is going back to layout.
|
||||
fFontReference = CFontReference::GetFontReference(charSet, &fAttr, context, sUnderlineLinks);
|
||||
attr->FE_Data = fAttr.FE_Data;
|
||||
|
||||
strike = ( attr->attrmask & LO_ATTR_STRIKEOUT );
|
||||
fInlineInput = ( attr->attrmask & ( LO_ATTR_INLINEINPUT | LO_ATTR_INLINEINPUTTHICK | LO_ATTR_INLINEINPUTDOTTED ) );
|
||||
|
Loading…
Reference in New Issue
Block a user