Part::Thickness: This fixes issue #2876 by changing property type for value to include a unit.

This commit is contained in:
Eivind Kvedalen
2017-07-21 19:42:23 +02:00
committed by wmayer
parent bf3a1660a5
commit 60b90ec8a3
4 changed files with 40 additions and 2 deletions

View File

@@ -495,7 +495,7 @@ class SpreadsheetCases(unittest.TestCase):
self.doc.addObject("Part::Thickness", "Pipe")
sheet.set('B1', '101')
sheet.set('A53', '=-(-(B1-1)/2)')
sheet.set('A54', '=-(Cylinder.Radius + Pipe.Value*1mm - 1"/2)')
sheet.set('A54', '=-(Cylinder.Radius + Pipe.Value - 1"/2)')
self.doc.recompute()
self.assertEqual(sheet.getContents("A1"), "=1 < 2 ? 3 : 4")