зеркало из https://github.com/mozilla/pjs.git
Fix purify UMR error -- thanks to braddr & bruce @ puremagic.com
This commit is contained in:
Родитель
7990bd6a43
Коммит
02574d59fa
|
@ -1310,7 +1310,6 @@ TextFrame::PaintAsciiText(nsIPresContext& aPresContext,
|
||||||
PrepareUnicodeText(tx,
|
PrepareUnicodeText(tx,
|
||||||
displaySelection ? ip : nsnull,
|
displaySelection ? ip : nsnull,
|
||||||
rawPaintBuf, textLength, width);
|
rawPaintBuf, textLength, width);
|
||||||
ip[mContentLength] = ip[mContentLength-1]+1; //must set up last one for selection beyond edge
|
|
||||||
// Translate unicode data into ascii for rendering
|
// Translate unicode data into ascii for rendering
|
||||||
char* dst = paintBuf;
|
char* dst = paintBuf;
|
||||||
char* end = dst + textLength;
|
char* end = dst + textLength;
|
||||||
|
@ -1330,6 +1329,7 @@ TextFrame::PaintAsciiText(nsIPresContext& aPresContext,
|
||||||
dx, dy, width);
|
dx, dy, width);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
ip[mContentLength] = ip[mContentLength-1]+1; //must set up last one for selection beyond edge
|
||||||
/* SelectionInfo si;
|
/* SelectionInfo si;
|
||||||
ComputeSelectionInfo(aRenderingContext, doc, ip, textLength, si);*/
|
ComputeSelectionInfo(aRenderingContext, doc, ip, textLength, si);*/
|
||||||
|
|
||||||
|
|
|
@ -1310,7 +1310,6 @@ TextFrame::PaintAsciiText(nsIPresContext& aPresContext,
|
||||||
PrepareUnicodeText(tx,
|
PrepareUnicodeText(tx,
|
||||||
displaySelection ? ip : nsnull,
|
displaySelection ? ip : nsnull,
|
||||||
rawPaintBuf, textLength, width);
|
rawPaintBuf, textLength, width);
|
||||||
ip[mContentLength] = ip[mContentLength-1]+1; //must set up last one for selection beyond edge
|
|
||||||
// Translate unicode data into ascii for rendering
|
// Translate unicode data into ascii for rendering
|
||||||
char* dst = paintBuf;
|
char* dst = paintBuf;
|
||||||
char* end = dst + textLength;
|
char* end = dst + textLength;
|
||||||
|
@ -1330,6 +1329,7 @@ TextFrame::PaintAsciiText(nsIPresContext& aPresContext,
|
||||||
dx, dy, width);
|
dx, dy, width);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
ip[mContentLength] = ip[mContentLength-1]+1; //must set up last one for selection beyond edge
|
||||||
/* SelectionInfo si;
|
/* SelectionInfo si;
|
||||||
ComputeSelectionInfo(aRenderingContext, doc, ip, textLength, si);*/
|
ComputeSelectionInfo(aRenderingContext, doc, ip, textLength, si);*/
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче