Skip to content

Commit

Permalink
fix margin around collage
Browse files Browse the repository at this point in the history
  • Loading branch information
Timm committed Jun 27, 2024
1 parent 0225e64 commit 28d7273
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions qml/CollageMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ CollageMenuForm {
signal exit

printButton.enabled: printer ? !printer.busy : false
property real printerHeight : form.collageImage.imageModel ? form.collageImage.imageModel.collagePixelSize.height : 3
property real printerWidth : form.collageImage.imageModel ? form.collageImage.imageModel.collagePixelSize.width : 4
property real printerHeight : form.collageImage.imageModel ? form.collageImage.imageModel.collagePixelSize.height : 0
property real printerWidth : form.collageImage.imageModel ? form.collageImage.imageModel.collagePixelSize.width : 0
printerRatio: printerHeight / printerWidth

nextButton.onClicked:
Expand Down
2 changes: 1 addition & 1 deletion qml/content/CollageRenderer.qml
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ Item {
console.log("Image grabbed successfully");
var success = result.saveToFile(filename, Qt.size(backgroundRect.width, backgroundRect.height));
if (success) {
console.log("Image saved successfully to " + filename);
console.log("Image saved successfully to " + filename + " with width: " + Number(background.width).toString() + " - height: " + Number(background.height).toString());
savedFilename = filename;
} else {
console.log("Failed to save image to " + filename);
Expand Down

0 comments on commit 28d7273

Please sign in to comment.