From aa38f53ed2f7a17d283903e03b72fd4731395e17 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 11 Jun 2022 21:17:26 +0200 Subject: [PATCH] Fix typo. --- modules/paint/paint_canvas.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/paint/paint_canvas.cpp b/modules/paint/paint_canvas.cpp index bf92edf1e..b6bc768be 100644 --- a/modules/paint/paint_canvas.cpp +++ b/modules/paint/paint_canvas.cpp @@ -24,12 +24,12 @@ SOFTWARE. #include "paint_canvas.h" +#include "paint_canvas_background.h" #include "paint_canvas_outline.h" #include "paint_utilities.h" #include "paint_visual_grid.h" #include "scene/gui/control.h" #include "scene/gui/texture_rect.h" -#include "paint_canvas_background.h" #include "paint_canvas_layer.h" @@ -135,7 +135,7 @@ void PaintCanvas::set_canvas_height(const int val) { _canvas_height = val; Size2 s = get_size(); - s.x = _canvas_height * _pixel_size; + s.y = _canvas_height * _pixel_size; set_size(s); } void PaintCanvas::toggle_alpha_locked(const String &layer_name) {