fontservices/fontstore/src/linkedfonts.cpp
branchRCL_3
changeset 4 7ff7c6e94fea
parent 0 1fb32624e06b
equal deleted inserted replaced
3:5390220f13c1 4:7ff7c6e94fea
   146 		User::Leave(KErrArgument);
   146 		User::Leave(KErrArgument);
   147 
   147 
   148 	if (GroupById(aElementSpec.GroupId()) == NULL)
   148 	if (GroupById(aElementSpec.GroupId()) == NULL)
   149 		User::Leave(KErrArgument);
   149 		User::Leave(KErrArgument);
   150 	
   150 	
   151 	TInt canIndex = CanonicalIndex();
       
   152 	if (aElementSpec.Canonical())
       
   153 		{
       
   154 		if (canIndex!=KErrNotFound)
       
   155 			User::Leave(KErrArgument);
       
   156 		}
       
   157 	
       
   158 	err = iBody->iTypefaces.Insert(&aElementSpec, aPos);
   151 	err = iBody->iTypefaces.Insert(&aElementSpec, aPos);
   159 
   152 
   160 	User::LeaveIfError(err);
   153 	User::LeaveIfError(err);
   161 	}
   154 	}
   162 
   155