mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
Add three lines at line 304 to fix the bug 14110. It checks whether there is ... at the end of the title. Have the code reviewed by Chris Saari.
This commit is contained in:
parent
9eb0272942
commit
b156d60320
@ -301,7 +301,11 @@ nsTitledButtonFrame::Init(nsIPresContext* aPresContext,
|
||||
accesskey.ToUpperCase();
|
||||
tmpstring += accesskey;
|
||||
tmpstring += ")";
|
||||
mTitle += tmpstring;
|
||||
PRUint32 offset = mTitle.RFind("...");
|
||||
if ( offset != kNotFound)
|
||||
mTitle.Insert(tmpstring,offset);
|
||||
else
|
||||
mTitle += tmpstring;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user