зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
9eb0272942
Коммит
b156d60320
|
@ -301,6 +301,10 @@ nsTitledButtonFrame::Init(nsIPresContext* aPresContext,
|
|||
accesskey.ToUpperCase();
|
||||
tmpstring += accesskey;
|
||||
tmpstring += ")";
|
||||
PRUint32 offset = mTitle.RFind("...");
|
||||
if ( offset != kNotFound)
|
||||
mTitle.Insert(tmpstring,offset);
|
||||
else
|
||||
mTitle += tmpstring;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче