Skip to content

Commit 6e6a702

Browse files
authored
Fix _get_fill_stroke
1 parent 8e14bca commit 6e6a702

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

svg2mod/svg2mod.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -470,8 +470,7 @@ def _convert_mm_to_decimil( mm ):
470470

471471
#------------------------------------------------------------------------
472472

473-
@classmethod
474-
def _get_fill_stroke( cls, item ):
473+
def _get_fill_stroke( self, item ):
475474

476475
fill = True
477476
stroke = True
@@ -499,7 +498,7 @@ def _get_fill_stroke( cls, item ):
499498
stroke_width = 0.0
500499
elif stroke_width is None:
501500
# Give a default stroke width?
502-
stroke_width = cls._convert_decimil_to_mm( 1 )
501+
stroke_width = self._convert_decimil_to_mm( 1 )
503502

504503
return fill, stroke, stroke_width
505504

0 commit comments

Comments
 (0)