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:
parent
4ffc27fcc1
commit
bab4f5ad7d
@ -379,6 +379,8 @@ void
|
|||||||
BMenuItem::TruncateLabel(float maxWidth, char *newLabel)
|
BMenuItem::TruncateLabel(float maxWidth, char *newLabel)
|
||||||
{
|
{
|
||||||
BFont font;
|
BFont font;
|
||||||
|
fSuper->GetFont(&font);
|
||||||
|
|
||||||
BString string(fLabel);
|
BString string(fLabel);
|
||||||
|
|
||||||
font.TruncateString(&string, B_TRUNCATE_MIDDLE, maxWidth);
|
font.TruncateString(&string, B_TRUNCATE_MIDDLE, maxWidth);
|
||||||
|
Loading…
Reference in New Issue
Block a user