default to setting selection _after_ a created element

This commit is contained in:
jfrancis%netscape.com 1999-07-25 09:25:02 +00:00
Родитель 9e1ee621c1
Коммит a2564d9b74
2 изменённых файлов: 4 добавлений и 4 удалений

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

@ -127,8 +127,8 @@ NS_IMETHODIMP CreateElementTxn::Do(void)
if (NS_SUCCEEDED(selectionResult) && selection) {
PRInt32 offset=0;
nsEditor::GetChildOffset(mNewNode, mParent, offset);
selectionResult = selection->Collapse(mParent, offset);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after undo of insert.");
selectionResult = selection->Collapse(mParent, offset+1);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after insert.");
}
}
}

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

@ -127,8 +127,8 @@ NS_IMETHODIMP CreateElementTxn::Do(void)
if (NS_SUCCEEDED(selectionResult) && selection) {
PRInt32 offset=0;
nsEditor::GetChildOffset(mNewNode, mParent, offset);
selectionResult = selection->Collapse(mParent, offset);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after undo of insert.");
selectionResult = selection->Collapse(mParent, offset+1);
NS_ASSERTION((NS_SUCCEEDED(selectionResult)), "selection could not be collapsed after insert.");
}
}
}