From 98b5e0d5f890f226ca920915411275e34a8a0092 Mon Sep 17 00:00:00 2001 From: Tim Su Date: Mon, 23 Aug 2010 17:39:50 -0700 Subject: [PATCH] Fix for AST-273 - rtm priority was being set incorrectly --- .../plugin-src/com/todoroo/astrid/rmilk/api/data/RtmTask.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrid/plugin-src/com/todoroo/astrid/rmilk/api/data/RtmTask.java b/astrid/plugin-src/com/todoroo/astrid/rmilk/api/data/RtmTask.java index fe3161cb0..75902add2 100644 --- a/astrid/plugin-src/com/todoroo/astrid/rmilk/api/data/RtmTask.java +++ b/astrid/plugin-src/com/todoroo/astrid/rmilk/api/data/RtmTask.java @@ -59,7 +59,7 @@ public class RtmTask High, Medium, Low, None; public static Priority values(Integer value) { - value = Math.max(values().length - 1, value); + value = Math.min(values().length - 1, value); return values()[value]; } }