mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-31 21:21:08 +00:00
Bug 319705: Crash when deleting comment line selected with triple click [@nsFontMetricsWin::ResolveForwards]. r+sr=bzbarsky
This commit is contained in:
parent
5996f93cf1
commit
7305c9fde0
@ -6753,7 +6753,7 @@ nsTextFrame::HasTerminalNewline() const
|
||||
if (tc && mContentLength > 0) {
|
||||
const nsTextFragment* frag = tc->Text();
|
||||
PRUnichar ch = frag->CharAt(mContentOffset + mContentLength - 1);
|
||||
if (ch == '\n' || ch == '\r')
|
||||
if (ch == '\n')
|
||||
return PR_TRUE;
|
||||
}
|
||||
return PR_FALSE;
|
||||
|
Loading…
Reference in New Issue
Block a user