Skip to content

Commit

Permalink
Use visible size when creating blank pages
Browse files Browse the repository at this point in the history
Consider crop and scaling when determining the size of a blank page
  • Loading branch information
angsch authored and kbengs committed Apr 4, 2021
1 parent 6c68c47 commit 20370a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pdfarranger/pdfarranger.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def insert_blank_page(self, _action, _option, _unknown):
selection.sort()
model = self.iconview.get_model()
if len(selection) > 0:
size = model[selection[-1]][0].size
size = model[selection[-1]][0].size_in_points()
page_size = croputils.BlankPageDialog(size, self.window).run_get()
if page_size is not None:
adder = PageAdder(self)
Expand Down

0 comments on commit 20370a4

Please sign in to comment.