From ee4428c3f367e8425448a188936e6d999ca53489 Mon Sep 17 00:00:00 2001 From: Anton Thomasson Date: Mon, 19 Jul 2021 16:14:33 +0200 Subject: [PATCH] Fix alternative type for number-up setting --- qml/pages/utils.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qml/pages/utils.js b/qml/pages/utils.js index 585ff6e..fd21ccf 100644 --- a/qml/pages/utils.js +++ b/qml/pages/utils.js @@ -452,6 +452,20 @@ function limitChoices(name, choices, mimeType) case "multiple-document-handling" : // Only collation settings valid, multiple documents not used return choices.filter(function(elem) {return elem.indexOf("collated") != -1}); + case "number-up": + if(choices.constructor.name === "Object") + { + var choice_array = []; + for(var i=choices.low; i <= choices.high; i++) + { + choice_array.push(i); + } + return choice_array; + } + else + { + return choices; + } default: return choices; }