Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
kaalleen committed Sep 5, 2022
1 parent 1ab4722 commit 99bf591
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ When a template has been opened in Inkscape before this extension is run, it wil

Templates can predefine a single or multiple areas were the bingo numbers should be placed in.

Create a rectangle and set the id-attribute to `bingo-area`. For multiple areas append numbers to the id such as `bingo-area_1`.
Create a rectangle and set the id-attribute to `bingo-area`. For multiple areas append numbers to the id such as `bingo-area_1`. Clones of rectangles can also be used as bingo-areas.

Use Inkscapes XML-Editor to add following attributes to the bingo-area-rectangle (optional):

Expand Down
2 changes: 2 additions & 0 deletions bingo/bingo.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ def generate(self):
if bingo_field.tag_name == "use":
bingo_clone = bingo_field
bingo_field = self._get_clone_origin(bingo_field)
if not bingo_field.tag_name == "rect":
continue

# get template params
# params of first bingo field will also be used for the others - if not defined specifically
Expand Down

0 comments on commit 99bf591

Please sign in to comment.