зеркало из https://github.com/mozilla/pjs.git
fixed some broken asserts
This commit is contained in:
Родитель
4eb5b512dc
Коммит
4041b3fb20
|
@ -48,8 +48,8 @@ NS_IMETHODIMP DeleteTextTxn::Init(nsIEditor *aEditor,
|
|||
NS_ASSERTION(0!=aNumCharsToDelete, "bad arg, numCharsToDelete");
|
||||
PRUint32 count;
|
||||
aElement->GetLength(&count);
|
||||
NS_ASSERTION(count<aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count<aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count>=aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count>=aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
mDeletedText = "";
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -48,8 +48,8 @@ NS_IMETHODIMP DeleteTextTxn::Init(nsIEditor *aEditor,
|
|||
NS_ASSERTION(0!=aNumCharsToDelete, "bad arg, numCharsToDelete");
|
||||
PRUint32 count;
|
||||
aElement->GetLength(&count);
|
||||
NS_ASSERTION(count<aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count<aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count>=aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
NS_ASSERTION(count>=aOffset+aNumCharsToDelete, "bad arg, numCharsToDelete. Not enough characters in node");
|
||||
mDeletedText = "";
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче