Fix purify UMR error -- thanks to braddr & bruce @ puremagic.com
git-svn-id: svn://10.0.0.236/trunk@23589 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1310,7 +1310,6 @@ TextFrame::PaintAsciiText(nsIPresContext& aPresContext,
|
||||
PrepareUnicodeText(tx,
|
||||
displaySelection ? ip : nsnull,
|
||||
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
|
||||
char* dst = paintBuf;
|
||||
char* end = dst + textLength;
|
||||
@@ -1330,6 +1329,7 @@ TextFrame::PaintAsciiText(nsIPresContext& aPresContext,
|
||||
dx, dy, width);
|
||||
}
|
||||
else {
|
||||
ip[mContentLength] = ip[mContentLength-1]+1; //must set up last one for selection beyond edge
|
||||
/* SelectionInfo si;
|
||||
ComputeSelectionInfo(aRenderingContext, doc, ip, textLength, si);*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user