diff -r f902e87c146f -r 748ec5531811 textrendering/texthandling/stext/TXTRTFLD.CPP --- a/textrendering/texthandling/stext/TXTRTFLD.CPP Wed Jun 09 11:40:52 2010 +0300 +++ b/textrendering/texthandling/stext/TXTRTFLD.CPP Tue Aug 31 17:01:26 2010 +0300 @@ -25,6 +25,11 @@ #include "TXTINDEX.H" #include "ParseLst.h" +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "TXTRTFLDTraces.h" +#endif + #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS #include "TXTETEXT_INTERNAL.H" #endif @@ -47,6 +52,10 @@ position, or a panic occurs. */ { __TEST_INVARIANT; + if (aPos < 0 || aPos > DocumentLength()) + { + OstTrace0( TRACE_DUMP, CRICHTEXT_UPDATEFIELDL, "ECharPosBeyondDocument" ); + } __ASSERT_ALWAYS(aPos >= 0 && aPos <= DocumentLength(), Panic(ECharPosBeyondDocument)); TFindFieldInfo fieldInfo;