From 721b9b638b2578858fde450bcaa6a75295d44ed9 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 8 Nov 2016 12:55:57 +0200 Subject: [PATCH] Fixed VPiece class method name. CountNode -> CountNodes. --HG-- branch : feature --- src/libs/vtools/dialogs/tools/dialogseamallowance.cpp | 4 ++-- src/libs/vtools/visualization/path/vistoolpiece.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp b/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp index d3cf319e6..d37e136ea 100644 --- a/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp +++ b/src/libs/vtools/dialogs/tools/dialogseamallowance.cpp @@ -82,7 +82,7 @@ void DialogSeamAllowance::SetPiece(const VPiece &piece) { m_piece = piece; ui->listWidget->clear(); - for (int i = 0; i < m_piece.CountNode(); ++i) + for (int i = 0; i < m_piece.CountNodes(); ++i) { NewItem(m_piece.at(i)); } @@ -134,7 +134,7 @@ void DialogSeamAllowance::ChosenObject(quint32 id, const SceneObject &type) const VPiece p = CreatePiece(); visPath->SetPiece(p); - if (p.CountNode() == 1) + if (p.CountNodes() == 1) { emit ToolTip(tr("Select main path objects clockwise, Shift - reverse direction curve, " "Enter - finish creation")); diff --git a/src/libs/vtools/visualization/path/vistoolpiece.cpp b/src/libs/vtools/visualization/path/vistoolpiece.cpp index f085d8e59..695c9cb9a 100644 --- a/src/libs/vtools/visualization/path/vistoolpiece.cpp +++ b/src/libs/vtools/visualization/path/vistoolpiece.cpp @@ -49,7 +49,7 @@ void VisToolPiece::RefreshGeometry() { HideAllItems(); - if (m_piece.CountNode() > 0) + if (m_piece.CountNodes() > 0) { DrawPath(this, m_piece.MainPathPath(Visualization::data), mainColor, Qt::SolidLine, Qt::RoundCap);