Material/Cut/Placement is not displayed on label if cut number is 0

--HG--
branch : feature
This commit is contained in:
BojanKverh 2016-07-10 11:32:37 +02:00
parent d76cc0bd38
commit a557b99409

View File

@ -707,9 +707,12 @@ void VToolDetail::UpdateLabel()
tl.m_iFontSize = 0;
for (int i = 0; i < data.GetMCPCount(); ++i) {
MaterialCutPlacement mcp = data.GetMCP(i);
if (mcp.m_iCutNumber > 0)
{
tl.m_qsText = qsText.arg(mcp.m_iCutNumber).arg(mcp.m_qsMaterialUserDef).arg(qslPlace[int(mcp.m_ePlacement)]);
dataLabel->AddLine(tl);
}
}
QPointF pt = data.GetPos() + QPointF(data.GetLabelWidth()/2, data.GetLabelHeight()/2);
// check if center is inside