diff -r f2f7b3284356 -r 91ef7621b7fc textrendering/texthandling/stext/TXTRTFLD.CPP --- a/textrendering/texthandling/stext/TXTRTFLD.CPP Mon May 03 14:13:26 2010 +0300 +++ b/textrendering/texthandling/stext/TXTRTFLD.CPP Thu Jun 24 11:18:23 2010 +0800 @@ -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;