From 1ca15c44e48c79ca228c9d2b06abc1e22b10ded1 Mon Sep 17 00:00:00 2001 From: Relintai Date: Mon, 20 Jun 2022 00:10:51 +0200 Subject: [PATCH] Fix typo in PencilAction. --- modules/paint/actions/pencil_action.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/paint/actions/pencil_action.cpp b/modules/paint/actions/pencil_action.cpp index 41ddb7580..ae9110e83 100644 --- a/modules/paint/actions/pencil_action.cpp +++ b/modules/paint/actions/pencil_action.cpp @@ -27,6 +27,7 @@ SOFTWARE. #include "../paint_canvas.h" #include "../paint_canvas_layer.h" #include "../paint_utilities.h" +#include "core/print_string.h" void PencilAction::do_action(PaintCanvas *canvas, const Array &data) { PaintAction::do_action(canvas, data); @@ -41,7 +42,7 @@ void PencilAction::do_action(PaintCanvas *canvas, const Array &data) { PoolVector2iArray points = get_points(canvas, pixel); for (int j = 0; j < points.size(); ++j) { - Vector2i p = points[i]; + Vector2i p = points[j]; _set_pixel(canvas, p, c); }