Commit e91daf8d authored by Thanassis Tsiodras's avatar Thanassis Tsiodras

Merged A mapper fixes that Maxime did on the ImprovePySideMapper branch

parent d6ed059a
...@@ -492,10 +492,11 @@ def DumpTypeDumper( ...@@ -492,10 +492,11 @@ def DumpTypeDumper(
'path[i]', 'path[i]',
containedNode, containedNode,
names) names)
lines.append(codeIndent + "state = self.GetState()")
lines.append(codeIndent + "length = %s.GetLength()" % variableName) lines.append(codeIndent + "length = %s.GetLength()" % variableName)
lines.append(codeIndent + "self.Reset(state)")
lines.append(codeIndent + "map(partial(emitElem, %s), xrange(length))" % variableName) lines.append(codeIndent + "map(partial(emitElem, %s), xrange(length))" % variableName)
if variableName.startswith("path[i]"): lines.append(codeIndent + 'self.Reset(state)')
lines.append(codeIndent + 'self.Reset(state)')
lines.append(codeIndent + 'lines.append("}")') lines.append(codeIndent + 'lines.append("}")')
......
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