From 8e3f3a4cd8f9cafab5199f29d3a96da9021953a7 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sat, 28 May 2016 13:16:27 +0300 Subject: [PATCH] Fixed crash with dialog History. --HG-- branch : develop --- src/app/valentina/dialogs/dialoghistory.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/valentina/dialogs/dialoghistory.cpp b/src/app/valentina/dialogs/dialoghistory.cpp index c6e4fbfeb..bd431689e 100644 --- a/src/app/valentina/dialogs/dialoghistory.cpp +++ b/src/app/valentina/dialogs/dialoghistory.cpp @@ -335,7 +335,7 @@ QString DialogHistory::Record(const VToolRecord &tool) case Tool::CutSpline: { const quint32 splineId = AttrUInt(domElem, VToolCutSpline::AttrSpline); - const QSharedPointer spl = data->GeometricObject(splineId); + const QSharedPointer spl = data->GeometricObject(splineId); SCASSERT(spl != nullptr); return QString(tr("%1 - cut %2")) .arg(PointName(tool.getId())) @@ -344,7 +344,8 @@ QString DialogHistory::Record(const VToolRecord &tool) case Tool::CutSplinePath: { const quint32 splinePathId = AttrUInt(domElem, VToolCutSplinePath::AttrSplinePath); - const QSharedPointer splPath = data->GeometricObject(splinePathId); + const QSharedPointer splPath = + data->GeometricObject(splinePathId); SCASSERT(splPath != nullptr); return QString(tr("%1 - cut %2")) .arg(PointName(tool.getId()))