Bug 330881: Crash when double-clicking in empty area inside isindex with position:absolute;direction:rtl;. r+sr=roc

This commit is contained in:
uriber@gmail.com
2006-03-20 09:20:49 +00:00
parent 20ebb6652d
commit 05a9831a8e
3 changed files with 42 additions and 92 deletions

View File

@@ -685,8 +685,13 @@ nsLineIterator::CheckLineOrder(PRInt32 aLine,
nsIFrame **aFirstVisual,
nsIFrame **aLastVisual)
{
NS_ASSERTION (aLine >= 0 && aLine < mNumLines, "aLine out of range!");
nsLineBox* line = mLines[aLine];
if (!line->mFirstChild) { // empty line
*aIsReordered = PR_FALSE;
return NS_OK;
}
nsPresContext* presContext = line->mFirstChild->GetPresContext();
if (!presContext->BidiEnabled()) {