Correct error checking for wrong frame range
authorCampbell Barton <ideasman42@gmail.com>
Tue, 5 Apr 2016 23:41:30 +0000 (09:41 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 5 Apr 2016 23:41:30 +0000 (09:41 +1000)
source/creator/creator_args.c

index dc590db403860cfec5bc76d4cf412f4213e5e148..3d1293519762ecb1ab1e1b7e8378bdcdaf790c75 100644 (file)
@@ -1335,7 +1335,7 @@ static int arg_handle_render_frame(int argc, const char **argv, void *data)
                        for (int i = 0; i < frames_range_len; i++) {
                                /* We could pass in frame ranges,
                                 * but prefer having exact behavior as passing in multiple frames */
-                               if ((frame_range_arr[i][0] < frame_range_arr[i][1]) == 0) {
+                               if ((frame_range_arr[i][0] <= frame_range_arr[i][1]) == 0) {
                                        printf("\nWarning: negative range ignored '%s %s'.\n", arg_id, argv[1]);
                                }