From: Martin Mares Date: Mon, 1 Jun 2020 09:51:11 +0000 (+0200) Subject: Fixed selectors which walk pages backwards X-Git-Tag: v1.2~8 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=ff7742436ba82e510209fe35ce62d7cd56f6554b;p=paperjam.git Fixed selectors which walk pages backwards --- diff --git a/cmds.cc b/cmds.cc index 7d0f9b6..7fad302 100644 --- a/cmds.cc +++ b/cmds.cc @@ -580,7 +580,7 @@ vector select_cmd::process(vector &pages) int f = validate_page_index(pages, ps.from); int t = validate_page_index(pages, ps.to); int step = (f <= t) ? 1 : -1; - for (int i=f; i<=t; i += step) + for (int i=f; i != t + step; i += step) selected.push_back(pages[i]); } auto processed = run_command_list(pb->commands, selected);