Skip to content

Commit

Permalink
[Fix] Wrong index for group name detection
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyen-v committed Nov 8, 2024
1 parent b57251a commit 997e739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kibot/out_pcb_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ def search_text(self, svg, texts):
self.search_text_for_g(e, texts)

def move_kibot_image_groups(self):
""" Look for KiBot image groups (_kibot_image_*)
""" Look for KiBot image groups (kibot_image_*)
Move them to the Rescue layer
Memorize them to restore and analysis """
self._image_groups = []
Expand Down Expand Up @@ -984,7 +984,7 @@ def add_output_images(self, svg, page):
logger.debug('- {name} not in printed layers')
continue
# Look for the image from the output
output_name = name[13:]
output_name = name[12:]
output_obj = look_for_output(output_name, '`include image`', self._parent, RENDERERS)
targets, _, _ = get_output_targets(output_name, self._parent)
targets = [fn for fn in targets if fn.endswith('.png')]
Expand Down

0 comments on commit 997e739

Please sign in to comment.