From 5b15b04a26f5ce4fe1773599dd070ef26d527ff0 Mon Sep 17 00:00:00 2001 From: dismine Date: Tue, 28 Oct 2014 13:33:39 +0200 Subject: [PATCH] Fixed error message after creation detail. --HG-- branch : develop --- src/app/tools/vtooldetail.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/app/tools/vtooldetail.cpp b/src/app/tools/vtooldetail.cpp index 4e715b73c..18f8de2a5 100644 --- a/src/app/tools/vtooldetail.cpp +++ b/src/app/tools/vtooldetail.cpp @@ -281,8 +281,8 @@ void VToolDetail::AddToFile() doc->SetAttribute(domElement, AttrName, detail.getName()); doc->SetAttribute(domElement, AttrMx, qApp->fromPixel(detail.getMx())); doc->SetAttribute(domElement, AttrMy, qApp->fromPixel(detail.getMy())); - doc->SetAttribute(domElement, AttrSupplement, detail.getSeamAllowance()); - doc->SetAttribute(domElement, AttrClosed, detail.getClosed()); + doc->SetAttribute(domElement, AttrSupplement, static_cast(detail.getSeamAllowance())); + doc->SetAttribute(domElement, AttrClosed, static_cast(detail.getClosed())); doc->SetAttribute(domElement, AttrWidth, detail.getWidth()); for (int i = 0; i < detail.CountNode(); ++i) @@ -306,8 +306,8 @@ void VToolDetail::RefreshDataInFile() { VDetail det = VAbstractTool::data.GetDetail(id); doc->SetAttribute(domElement, AttrName, det.getName()); - doc->SetAttribute(domElement, AttrSupplement, QString().setNum(det.getSeamAllowance())); - doc->SetAttribute(domElement, AttrClosed, QString().setNum(det.getClosed())); + doc->SetAttribute(domElement, AttrSupplement, QString().setNum(static_cast(det.getSeamAllowance()))); + doc->SetAttribute(domElement, AttrClosed, QString().setNum(static_cast(det.getClosed()))); doc->SetAttribute(domElement, AttrWidth, QString().setNum(det.getWidth())); doc->RemoveAllChild(domElement); for (int i = 0; i < det.CountNode(); ++i)