From 9c2d6169c639430878a1a37b0204931d9354bb70 Mon Sep 17 00:00:00 2001 From: arch1t3cht Date: Sat, 29 Apr 2023 01:11:15 +0200 Subject: [PATCH] perspective tool: Fix uninitialized variable --- src/visual_tool_perspective.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/visual_tool_perspective.cpp b/src/visual_tool_perspective.cpp index 4bf75ef74..86d629d96 100644 --- a/src/visual_tool_perspective.cpp +++ b/src/visual_tool_perspective.cpp @@ -35,6 +35,8 @@ #include #include +#include + #include #include @@ -783,7 +785,7 @@ void VisualToolPerspective::TextToPersp() { GetLineBaseExtents(active_line, textwidth, textheight, descend, extlead); textwidth = std::max(textwidth, 1.); textheight = std::max(textheight, 1.); - double textleft, texttop = 0.; + double textleft = 0., texttop = 0.; switch ((align - 1) % 3) { case 1: