Commit 051b9da3 authored by Martin Schorb's avatar Martin Schorb

bugfix mergemap idoc

parent 539ea002
......@@ -135,6 +135,8 @@ def mdoc_item(lines1,label,header=False):
# returns it as a dictionary
if lines1[-1] != '':
lines = lines1+['']
else:
lines=lines1
if header:
item = lines[:lines.index('')]
......@@ -543,7 +545,7 @@ def mergemap(mapitem,crop=False,black=False,blendmont=True):
if 'Image = ' in lastitem:
break
prefix = mbase[:mbase.find('.idoc')]
prefix = mbase#[:mbase.find('.idoc')]
stacksize = int(lastitem[lastitem.find(prefix)+len(prefix):-5])+1
mergeheader['stacksize'] = stacksize
......
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