From c918de317885106106d72cb403252647c6ac5afd Mon Sep 17 00:00:00 2001 From: Scott Gilbertson Date: Sun, 7 Jan 2024 11:49:19 -0500 Subject: [PATCH] Reversed %p and %P processing cases for location templates, which were opposite to what the help says. --- rtgui/batchqueue.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtgui/batchqueue.cc b/rtgui/batchqueue.cc index bdf6c6e5e..c3723515f 100644 --- a/rtgui/batchqueue.cc +++ b/rtgui/batchqueue.cc @@ -915,7 +915,7 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam if (options.savePathTemplate[ix] == '%') { ix++; - if (options.savePathTemplate[ix] == 'p') { + if (options.savePathTemplate[ix] == 'P') { // insert path elements from given index to the end ix++; unsigned n = decodePathIndex(ix, options.savePathTemplate, da.size()); @@ -929,7 +929,7 @@ Glib::ustring BatchQueue::calcAutoFileNameBase (const Glib::ustring& origFileNam if (ix < options.savePathTemplate.size() && options.savePathTemplate[ix] != '/' && options.savePathTemplate[ix] != '\\') { ix--; } - } else if (options.savePathTemplate[ix] == 'P') { + } else if (options.savePathTemplate[ix] == 'p') { // insert path elements from the start of the path up to the given index ix++; unsigned n = decodePathIndex(ix, options.savePathTemplate, da.size());