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:
rchen%netscape.com 2000-02-11 02:07:54 +00:00
Родитель 9eb0272942
Коммит b156d60320
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -301,7 +301,11 @@ nsTitledButtonFrame::Init(nsIPresContext* aPresContext,
accesskey.ToUpperCase(); accesskey.ToUpperCase();
tmpstring += accesskey; tmpstring += accesskey;
tmpstring += ")"; tmpstring += ")";
mTitle += tmpstring; PRUint32 offset = mTitle.RFind("...");
if ( offset != kNotFound)
mTitle.Insert(tmpstring,offset);
else
mTitle += tmpstring;
} }
} }
#endif #endif