Fixed bad warning message aboput empty sections.

This commit is contained in:
Jose Luis Cercós Pita 2012-01-31 09:34:42 +01:00
parent 822beda220
commit 9795913334

View File

@ -134,7 +134,7 @@ class Ship:
wires = shape.slice(Vector(1.0,0.0,0.0), x)
if not wires:
if (i != 0) or (i != nS-1):
msg = 'Found empty section at x=%g\n'
msg = 'Found empty section at x=%g\n' % (x)
msg = Translator.translate(msg)
FreeCAD.Console.PrintWarning(msg)
FreeCAD.Console.PrintWarning('\tThis may happens if a bad defined (or really complex) surface has been provided.\n')