Commit a01b9248 authored by Arnaud Fontaine's avatar Arnaud Fontaine

IdTool: version is an integer.

parent d56f48b0
...@@ -92,7 +92,8 @@ class IdTool(BaseTool): ...@@ -92,7 +92,8 @@ class IdTool(BaseTool):
version_last_generator = 0 version_last_generator = 0
for generator in self.objectValues(): for generator in self.objectValues():
if generator.getReference() == reference: if generator.getReference() == reference:
version = generator.getVersion() # Version Property Sheet defines 'version' property as a 'string'
version = int(generator.getVersion())
if version > version_last_generator: if version > version_last_generator:
id_last_generator = generator.getId() id_last_generator = generator.getId()
version_last_generator = version version_last_generator = version
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment