From f198ef7ae37189f8b6670673f3d66a12f2a7242f Mon Sep 17 00:00:00 2001 From: "akkana%netscape.com" Date: Wed, 10 Mar 1999 22:30:23 +0000 Subject: [PATCH] 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 --- mozilla/layout/generic/nsTextFrame.cpp | 2 +- mozilla/layout/html/base/src/nsTextFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/generic/nsTextFrame.cpp b/mozilla/layout/generic/nsTextFrame.cpp index db70f5b4cfc..cf2c6d00981 100644 --- a/mozilla/layout/generic/nsTextFrame.cpp +++ b/mozilla/layout/generic/nsTextFrame.cpp @@ -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);*/ diff --git a/mozilla/layout/html/base/src/nsTextFrame.cpp b/mozilla/layout/html/base/src/nsTextFrame.cpp index db70f5b4cfc..cf2c6d00981 100644 --- a/mozilla/layout/html/base/src/nsTextFrame.cpp +++ b/mozilla/layout/html/base/src/nsTextFrame.cpp @@ -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);*/