diff --git a/src/java/com/threerings/media/image/ColorPository.java b/src/java/com/threerings/media/image/ColorPository.java index ba58c176..b28d8d0a 100644 --- a/src/java/com/threerings/media/image/ColorPository.java +++ b/src/java/com/threerings/media/image/ColorPository.java @@ -397,7 +397,7 @@ public class ColorPository implements Serializable */ public ColorRecord getColorRecord (int classId, int colorId) { - ClassRecord record = _classes.get(classId); + ClassRecord record = getClassRecord(classId); if (record == null) { // if they request color class zero, we assume they're just // decoding a blank colorprint, otherwise we complain @@ -433,6 +433,14 @@ public class ColorPository implements Serializable return record.colors.get(colorId); } + /** + * Looks up the requested color class record. + */ + public ClassRecord getClassRecord (int classId) + { + return _classes.get(classId); + } + /** * Adds a fully configured color class record to the pository. This is only called by the XML * parsing code, so pay it no mind.