array_creator: Transform item before adding, modify only the first one.

This commit is contained in:
Alex 2022-11-19 04:07:35 +05:00
parent d3aed6c408
commit 126d224e44
1 changed files with 4 additions and 7 deletions

View File

@ -97,6 +97,9 @@ void ARRAY_CREATOR::Invoke()
// the first point: we don't own this or add it, but
// we might still modify it (position or label)
this_item = item;
commit.Modify( this_item );
TransformItem( *array_opts, ptN, *this_item );
}
else
{
@ -168,17 +171,11 @@ void ARRAY_CREATOR::Invoke()
});
}
TransformItem( *array_opts, ptN, *this_item );
commit.Add( this_item );
}
}
// always transform the item
if( this_item )
{
commit.Modify( this_item );
TransformItem( *array_opts, ptN, *this_item );
}
// attempt to renumber items if the array parameters define
// a complete numbering scheme to number by (as opposed to
// implicit numbering by incrementing the items during creation