зеркало из https://github.com/mozilla/pjs.git
fix for 184308: cf_html bustage. fencepost error. r=brade; sr=bz; a=asa
This commit is contained in:
Родитель
7f3a67f9d9
Коммит
958bd182cb
|
@ -883,7 +883,7 @@ nsHTMLEditor::ParseCFHTML(nsCString & aCfhtml, PRUnichar **aStuffToPaste, PRUnic
|
|||
|
||||
// translate platform linebreaks for context
|
||||
newStr = 0;
|
||||
oldLengthInChars = cntxtUcs2Str.Length(); // +1 to include null terminator
|
||||
oldLengthInChars = cntxtUcs2Str.Length() + 1; // +1 to include null terminator
|
||||
newLengthInChars = 0;
|
||||
*aCfcontext = nsLinebreakConverter::ConvertUnicharLineBreaks(cntxtUcs2Str.get(),
|
||||
nsLinebreakConverter::eLinebreakAny,
|
||||
|
|
Загрузка…
Ссылка в новой задаче