CopyTrimsToOffset function added - #1323