From 02574d59faaa0a6ef8e677774f6d183be912d138 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 --- layout/generic/nsTextFrame.cpp | 2 +- layout/html/base/src/nsTextFrame.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/generic/nsTextFrame.cpp b/layout/generic/nsTextFrame.cpp index db70f5b4cfc..cf2c6d00981 100644 --- a/layout/generic/nsTextFrame.cpp +++ b/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/layout/html/base/src/nsTextFrame.cpp b/layout/html/base/src/nsTextFrame.cpp index db70f5b4cfc..cf2c6d00981 100644 --- a/layout/html/base/src/nsTextFrame.cpp +++ b/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);*/