diff --git a/src/app/commands/cmd_canvas_size.cpp b/src/app/commands/cmd_canvas_size.cpp index 9351e1a6c..86bf3f8da 100644 --- a/src/app/commands/cmd_canvas_size.cpp +++ b/src/app/commands/cmd_canvas_size.cpp @@ -364,9 +364,14 @@ void CanvasSizeCommand::onExecute(Context* context) Preferences::instance().canvasSize.trimOutside(params.trimOutside()); - bounds.enlarge( - gfx::Border(params.left(), params.top(), - params.right(), params.bottom())); + if (params.bounds.isSet()) { + bounds = params.bounds(); + } + else { + bounds.enlarge( + gfx::Border(params.left(), params.top(), + params.right(), params.bottom())); + } } #endif