Fix purify UMR error -- thanks to braddr & bruce @ puremagic.com

This commit is contained in:
akkana%netscape.com 1999-03-10 22:30:23 +00:00
Родитель 7990bd6a43
Коммит 02574d59fa
2 изменённых файлов: 2 добавлений и 2 удалений

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

@ -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);*/