avoid unnecessary error
This commit is contained in:
@@ -31,8 +31,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>561</width>
|
||||
<height>675</height>
|
||||
<width>139</width>
|
||||
<height>357</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="label">
|
||||
@@ -409,7 +409,7 @@
|
||||
<item>
|
||||
<widget class="QToolBox" name="toolBox_2">
|
||||
<property name="currentIndex">
|
||||
<number>1</number>
|
||||
<number>0</number>
|
||||
</property>
|
||||
<widget class="QWidget" name="page_3">
|
||||
<property name="geometry">
|
||||
@@ -1170,8 +1170,8 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>561</width>
|
||||
<height>675</height>
|
||||
<width>300</width>
|
||||
<height>145</height>
|
||||
</rect>
|
||||
</property>
|
||||
<attribute name="label">
|
||||
|
||||
@@ -348,11 +348,14 @@ class JobTemplateExport:
|
||||
job.Stock.Height,
|
||||
)
|
||||
elif stockType == PathStock.StockType.CreateCylinder:
|
||||
seHint = translate("Path_Job", "Cylinder: %.2f x %.2f") % (
|
||||
seHint = translate("Path_Job:", "Cylinder: %.2f x %.2f") % (
|
||||
job.Stock.Radius,
|
||||
job.Stock.Height,
|
||||
)
|
||||
else:
|
||||
elif stockType == PathStock.StockType.Unknown:
|
||||
seHint = "-"
|
||||
|
||||
else: # Existing Solid
|
||||
seHint = "-"
|
||||
PathLog.error(translate("Path_Job", "Unsupported stock type"))
|
||||
self.dialog.stockExtentHint.setText(seHint)
|
||||
|
||||
Reference in New Issue
Block a user