diff -r f2f7b3284356 -r 91ef7621b7fc textrendering/texthandling/stext/TXTFRMAT.CPP --- a/textrendering/texthandling/stext/TXTFRMAT.CPP Mon May 03 14:13:26 2010 +0300 +++ b/textrendering/texthandling/stext/TXTFRMAT.CPP Thu Jun 24 11:18:23 2010 +0800 @@ -23,6 +23,11 @@ #include "TXTFRMAT.H" #include "TXTSTD.H" +#include "OstTraceDefinitions.h" +#ifdef OST_TRACE_COMPILER_IN_USE +#include "TXTFRMATTraces.h" +#endif + const TInt KParaDefaultLanguage=0; @@ -647,6 +652,10 @@ of tab stops, use TabCount(). @return The tab stop located at the specified index. */ { + if (aTabIndex>=TabCount()) + { + OstTrace0( TRACE_FATAL, CPARAFORMAT_TABSTOP, "ETabNotFound" ); + } __ASSERT_ALWAYS(aTabIndex