Make 1 minimal value of the field "Cut number".

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2016-08-22 11:47:21 +03:00
parent 7dd88da82d
commit bf82dc3bb3
2 changed files with 6 additions and 5 deletions

View File

@ -254,7 +254,7 @@ void VTextManager::Update(const QString& qsName, const VPatternPieceData& data)
for (int i = 0; i < data.GetMCPCount(); ++i)
{
MaterialCutPlacement mcp = data.GetMCP(i);
if (mcp.m_iCutNumber > 0)
if (mcp.m_iCutNumber > 0)//Not gonna happen because min value is 1 now, but decided to left
{
QString qsMat;
if (mcp.m_eMaterial == MaterialType::mtUserDefined)

View File

@ -305,8 +305,7 @@
</property>
<property name="icon">
<iconset theme="go-down">
<normaloff/>
</iconset>
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
@ -320,8 +319,7 @@
</property>
<property name="icon">
<iconset theme="go-up">
<normaloff/>
</iconset>
<normaloff>.</normaloff>.</iconset>
</property>
</widget>
</item>
@ -431,6 +429,9 @@
</item>
<item row="1" column="2" colspan="2">
<widget class="QSpinBox" name="spinBoxCutNumber">
<property name="minimum">
<number>1</number>
</property>
<property name="maximum">
<number>1000</number>
</property>