[Prev][Next][Index]
getTrueType minor fix
- To: sage-bugs@cica.indiana.edu
- Subject: getTrueType minor fix
- Date: Thu, 18 May 1995 08:57:20 -0500
- From: Andrew Mauer <mauer@mcs.anl.gov>
- Sender: owner-sage-bugs@extreme.indiana.edu
In getTrueType, the T_DESCRIPT case does not behave quite as one would
desire.
The original code is this:
case T_DESCRIPT:
return this->maskDescriptors (mask);
break
Please replace it with this code:
case T_DESCRIPT:
{
SgType *masked = this->maskDescriptors (mask);
/* maskDescriptors returns a TrueType, but it
does not follow typedefs, so we might still
need to do that. */
if ( masked->variant() == T_DESCRIPT
|| ( ! follow_typedefs ) )
{
/* Did not get rid of all of the descriptors,
or not following typdefs. */
return masked;
}
else
{
/* Got rid of all descriptors and are following typedefs. */
return masked->getTrueType(mask, follow_typedefs);
}
break;
}
/Andrew/