predictivesearch/PcsUtils/src/CPsQuery.cpp
branchRCL_3
changeset 39 a6539d1e8e43
parent 15 e8e3147d53eb
child 64 c1e8ba0c2b16
--- a/predictivesearch/PcsUtils/src/CPsQuery.cpp	Tue May 25 12:26:45 2010 +0300
+++ b/predictivesearch/PcsUtils/src/CPsQuery.cpp	Wed Jun 09 09:26:27 2010 +0300
@@ -94,7 +94,7 @@
 // ----------------------------------------------------------------------------
 EXPORT_C CPsQueryItem& CPsQuery:: GetItemAtL(TInt aIndex)
 {    
-	if ( aIndex < 0 && aIndex >= iSearchQuery.Count()) 
+	if ( aIndex < 0 || aIndex >= iSearchQuery.Count()) 
 	{
 	    User::Leave(KErrArgument);		
 	}