perspective tool: Fix uninitialized variable

This commit is contained in:
arch1t3cht 2023-04-29 01:11:15 +02:00
parent e7e56ef5e0
commit 9c2d6169c6
1 changed files with 3 additions and 1 deletions

View File

@ -35,6 +35,8 @@
#include <libaegisub/split.h>
#include <libaegisub/util.h>
#include <libaegisub/log.h>
#include <cmath>
#include <wx/colour.h>
@ -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: