From 084109488f2dd584930f78538b2342f69b98f799 Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 27 Oct 2014 18:03:27 +0200 Subject: [PATCH] Crash after using uninitialized variable. --HG-- branch : develop --- src/app/undocommands/deletedetail.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/undocommands/deletedetail.cpp b/src/app/undocommands/deletedetail.cpp index 65a21a108..0993fe29d 100644 --- a/src/app/undocommands/deletedetail.cpp +++ b/src/app/undocommands/deletedetail.cpp @@ -32,7 +32,7 @@ //--------------------------------------------------------------------------------------------------------------------- DeleteDetail::DeleteDetail(VPattern *doc, quint32 id, QUndoCommand *parent) - : VUndoCommand(xml, doc, parent), parentNode(QDomNode()) + : VUndoCommand(QDomElement(), doc, parent), parentNode(QDomNode()) { setText(tr("Delete tool")); nodeId = id;