textrendering/texthandling/stext/TxtWriter.cpp
changeset 40 91ef7621b7fc
parent 0 1fb32624e06b
child 55 336bee5c2d35
--- a/textrendering/texthandling/stext/TxtWriter.cpp	Mon May 03 14:13:26 2010 +0300
+++ b/textrendering/texthandling/stext/TxtWriter.cpp	Thu Jun 24 11:18:23 2010 +0800
@@ -19,6 +19,11 @@
 #include "TxtWriter.h"
 #include <txtetext.h>
 #include "TXTPLAIN.H"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "TxtWriterTraces.h"
+#endif
+
 
 static const TText KLineBreak = 0x0A;//Used by TSLBTransaltor class - 0x0A, 0x0D, {0x0D, 0x0A}
                               //character aequences found in the input stream will be translated 
@@ -99,6 +104,10 @@
 */
 void TParagraphTextWriter::WriteL(TText aChar)
 	{
+	if (aChar == 0x0D)
+	    {
+	    OstTrace0( TRACE_DUMP, TPARAGRAPHTEXTWRITER_WRITEL, "Invariant" );
+	    }
 	__ASSERT_DEBUG(aChar != 0x0D, User::Invariant());
 	if(aChar == KLineBreak)
 		{
@@ -126,6 +135,10 @@
 */
 void TLineTextWriter::WriteL(TText aChar)
 	{
+	if (aChar == 0x0D)
+	    {
+	    OstTrace0( TRACE_DUMP, TLINETEXTWRITER_WRITEL, "Invariant" );
+	    }
 	__ASSERT_DEBUG(aChar != 0x0D, User::Invariant());
 	TText prevChar = iPrevChar;
 	iPrevChar = aChar;