Skip to content

Commit

Permalink
Fix alternative type for number-up setting
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Jul 19, 2021
1 parent a330bdc commit ee4428c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions qml/pages/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ee4428c

Please sign in to comment.