diff --git a/src/document/UBDocumentController.cpp b/src/document/UBDocumentController.cpp index a1bcc275..cf3a4fdb 100644 --- a/src/document/UBDocumentController.cpp +++ b/src/document/UBDocumentController.cpp @@ -345,6 +345,7 @@ UBDocumentTreeNode *UBDocumentTreeNode::previousSibling() UBDocumentTreeModel::UBDocumentTreeModel(QObject *parent) : QAbstractItemModel(parent) , mRootNode(0) + , mCurrentNode(nullptr) { UBDocumentTreeNode *rootNode = new UBDocumentTreeNode(UBDocumentTreeNode::Catalog, "root"); diff --git a/src/domain/UBGraphicsDelegateFrame.cpp b/src/domain/UBGraphicsDelegateFrame.cpp index 571491e7..36334510 100644 --- a/src/domain/UBGraphicsDelegateFrame.cpp +++ b/src/domain/UBGraphicsDelegateFrame.cpp @@ -67,6 +67,7 @@ UBGraphicsDelegateFrame::UBGraphicsDelegateFrame(UBGraphicsItemDelegate* pDelega , mFlippedY(false) , mMirrorX(false) , mMirrorY(false) + , mResizing(false) , mTitleBarHeight(hasTitleBar ? 20 :0) , mNominalTitleBarHeight(hasTitleBar ? 20:0) { diff --git a/src/domain/UBGraphicsScene.cpp b/src/domain/UBGraphicsScene.cpp index b264c1cb..c35bf7cf 100644 --- a/src/domain/UBGraphicsScene.cpp +++ b/src/domain/UBGraphicsScene.cpp @@ -336,8 +336,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"); diff --git a/src/domain/UBGraphicsStrokesGroup.cpp b/src/domain/UBGraphicsStrokesGroup.cpp index 8ce08a2e..75d04dad 100644 --- a/src/domain/UBGraphicsStrokesGroup.cpp +++ b/src/domain/UBGraphicsStrokesGroup.cpp @@ -35,7 +35,10 @@ #include "core/memcheck.h" UBGraphicsStrokesGroup::UBGraphicsStrokesGroup(QGraphicsItem *parent) - :QGraphicsItemGroup(parent), UBGraphicsItem() + : QGraphicsItemGroup(parent) + , UBGraphicsItem() + , debugTextEnabled(false) // set to true to get a graphical display of strokes' Z-levels + , mDebugText(nullptr) { setDelegate(new UBGraphicsItemDelegate(this, 0, GF_COMMON | GF_RESPECT_RATIO @@ -49,9 +52,6 @@ UBGraphicsStrokesGroup::UBGraphicsStrokesGroup(QGraphicsItem *parent) setFlag(QGraphicsItem::ItemSendsGeometryChanges, true); setFlag(QGraphicsItem::ItemIsSelectable, true); setFlag(QGraphicsItem::ItemIsMovable, true); - - mDebugText = NULL; - debugTextEnabled = false; // set to true to get a graphical display of strokes' Z-levels } UBGraphicsStrokesGroup::~UBGraphicsStrokesGroup()