Fix best match resource selection when there's only one match.

Was using the wrong index.

Change-Id: I7d761ffa553f0aeec176a4752185dde238991e5e
This commit is contained in:
Xavier Ducrohet
2009-10-05 12:15:08 -07:00
parent 06f70393bd
commit 98fcd41e1f

View File

@@ -604,7 +604,7 @@ public class ProjectResources implements IResourceRepository {
if (matchingResources.size() == 0) { if (matchingResources.size() == 0) {
return null; return null;
} }
return matchingResources.get(1); return matchingResources.get(0);
} }
/** /**