Use the parent menu's font when truncating labels.

Fixes the other bug uncovered by #8829, but my other fix was valid too.
This commit is contained in:
Ryan Leavengood 2012-08-04 00:24:56 -04:00
parent 4ffc27fcc1
commit bab4f5ad7d

View File

@ -379,6 +379,8 @@ void
BMenuItem::TruncateLabel(float maxWidth, char *newLabel)
{
BFont font;
fSuper->GetFont(&font);
BString string(fLabel);
font.TruncateString(&string, B_TRUNCATE_MIDDLE, maxWidth);