array_creator: Transform item before adding, modify only the first one.
This commit is contained in:
parent
d3aed6c408
commit
126d224e44
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue