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
parent 9eb0272942
commit b156d60320

View File

@ -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