@@ -327,26 +327,25 @@ def get_as_colorblocks(self):
327327 if colorblock_start != pos :
328328 thread = self .get_thread_or_filler (thread_index )
329329 thread_index += 1
330- yield self .stitches [colorblock_start :pos - 1 ], thread
330+ yield self .stitches [colorblock_start :pos ], thread
331331 colorblock_start = pos + 1
332332 continue
333333 if command == COLOR_CHANGE :
334334 thread = self .get_thread_or_filler (thread_index )
335335 thread_index += 1
336- yield self .stitches [colorblock_start :pos + 1 ], thread
337- colorblock_start = pos + 1
336+ yield self .stitches [colorblock_start :pos + 1 ], thread
337+ colorblock_start = pos + 1
338338 continue
339339 if command == NEEDLE_SET and colorblock_start != pos :
340340 thread = self .get_thread_or_filler (thread_index )
341341 thread_index += 1
342- yield self .stitches [colorblock_start :pos - 1 ], thread
343- colorblock_start = pos - 1
342+ yield self .stitches [colorblock_start :pos ], thread
343+ colorblock_start = pos
344344 continue
345345
346-
347346 if colorblock_start != len (self .stitches ):
348347 thread = self .get_thread_or_filler (thread_index )
349- yield ( self .stitches [colorblock_start :], thread )
348+ yield self .stitches [colorblock_start :], thread
350349
351350 def get_as_stitches (self ):
352351 """pos, x, y, command, v1, v2, v3"""
0 commit comments