charconvfw/numbergrouping/Src/StateMachine.cpp
branchRCL_3
changeset 11 6971d1c87c9a
parent 0 1fb32624e06b
--- a/charconvfw/numbergrouping/Src/StateMachine.cpp	Sat Feb 20 00:37:46 2010 +0200
+++ b/charconvfw/numbergrouping/Src/StateMachine.cpp	Fri Mar 12 15:51:09 2010 +0200
@@ -71,7 +71,7 @@
 
 void CStateMachine::AddStateTransistionL(TInt aIndex, TInt aState, TInt aNextState)
 {
-	if(aIndex > iMaxNumberChars || aState > iMaxNumberStates || aNextState > iMaxNumberStates)
+    if(aIndex < 0 || aIndex > iMaxNumberChars || aState > iMaxNumberStates || aNextState > iMaxNumberStates)
 		User::Leave(KErrGeneral);
 
 	iStateTable[static_cast<TInt>(aIndex)][static_cast<TInt>(aState)] = static_cast<TInt>(aNextState);