Bug 564705. Don't try to insert a separating space at the start of the XUL textbox title. r=neil

This commit is contained in:
Timothy Nikkel 2010-05-11 19:30:42 -05:00
parent 1d3c24e51b
commit c109fe2321

View File

@ -876,7 +876,7 @@ nsTextBoxFrame::UpdateAccessTitle()
}
if (InsertSeparatorBeforeAccessKey() &&
!NS_IS_SPACE(mTitle[offset - 1])) {
offset > 0 && !NS_IS_SPACE(mTitle[offset - 1])) {
mTitle.Insert(' ', offset);
offset++;
}