Commit 33126c57 authored by Arnaud Fontaine's avatar Arnaud Fontaine

IdTool: version is an integer.

parent 0adf23fb
...@@ -93,7 +93,8 @@ class IdTool(BaseTool): ...@@ -93,7 +93,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