equal
deleted
inserted
replaced
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 |