From 038f9ed07bc450dac1f930b4a42a0ad9a7bcfad1 Mon Sep 17 00:00:00 2001 From: "Victor \"multun\" Collod" Date: Sun, 3 May 2020 22:05:46 -0700 Subject: [PATCH] initialise mDrawWithCompass in UBGraphicsScene Detected using valgrind --- src/domain/UBGraphicsScene.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index 13be73d7..a76578df 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -337,8 +337,9 @@ UBGraphicsScene::UBGraphicsScene(UBDocumentProxy* parent, bool enableUndoRedoSta , magniferDisplayViewWidget(0) , mZLayerController(new UBZLayerController(this)) , mpLastPolygon(NULL) - , mCurrentPolygon(0) , mTempPolygon(NULL) + , mDrawWithCompass(false) + , mCurrentPolygon(0) , mSelectionFrame(0) { UBCoreGraphicsScene::setObjectName("BoardScene");