Fixed VPiece class method name. CountNode -> CountNodes.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-11-08 12:55:57 +02:00
parent 2b75519d66
commit 721b9b638b
2 changed files with 3 additions and 3 deletions

View file

@ -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, <b>Shift</b> - reverse direction curve, "
"<b>Enter</b> - finish creation"));

View file

@ -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);