From e4c8dee0406ee67bd2cb00f6da44e25df9f5a2a1 Mon Sep 17 00:00:00 2001 From: mjbudd77 Date: Mon, 27 Dec 2021 21:01:57 -0500 Subject: [PATCH] Ensure that cloud position is initialized properly in Qt TAS branch view. --- src/drivers/Qt/TasEditor/branches.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/drivers/Qt/TasEditor/branches.cpp b/src/drivers/Qt/TasEditor/branches.cpp index 93b37081..e6788afb 100644 --- a/src/drivers/Qt/TasEditor/branches.cpp +++ b/src/drivers/Qt/TasEditor/branches.cpp @@ -57,6 +57,7 @@ BRANCHES::BRANCHES(QWidget *parent) cornersCursorX = cornersCursorY = 0; fireballSize = 0; lastItemUnderMouse = -1; + cloudX = cloudPreviousX = cloudCurrentX = BRANCHES_CLOUD_X; imageItem = 0; imageTimer = new QTimer(this); @@ -150,6 +151,7 @@ void BRANCHES::init() branchPreviousY.resize(TOTAL_BOOKMARKS+1); branchCurrentX.resize(TOTAL_BOOKMARKS+1); branchCurrentY.resize(TOTAL_BOOKMARKS+1); + cloudPreviousX = BRANCHES_CLOUD_X; // set positions of slots to default coordinates for (int i = TOTAL_BOOKMARKS; i >= 0; i--)