--- a/textrendering/texthandling/stext/TXTFRMAT.CPP Wed Jun 09 11:40:52 2010 +0300
+++ b/textrendering/texthandling/stext/TXTFRMAT.CPP Tue Aug 31 17:01:26 2010 +0300
@@ -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<TabCount(),Panic(ETabNotFound));
return (iTabList)