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: