Skip to content

Gradient fill causes crash. #4

Description

@ReubenM

The readme said gradients should be supported, so I figured I should post error caused by gradient fill.

Traceback (most recent call last):
File "canvas.py", line 427, in
ink.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 207, in affect
self.effect()
File "canvas.py", line 423, in effect
self.drawG(ctx, svg)
File "canvas.py", line 410, in drawG
getattr(self, method)(ctx, child)
File "canvas.py", line 410, in drawG
getattr(self, method)(ctx, child)
File "canvas.py", line 369, in drawPath
self.drawAbstractShape(ctx, node, self.drawPathHelper, [ctx, path])
File "canvas.py", line 230, in drawAbstractShape
self.setStyle(ctx, node)
File "canvas.py", line 223, in setStyle
getattr(ctx, method)(style[key])
File "canvas.py", line 133, in setFill
self.write("%s.fillStyle = %s;" % (self.obj, self.fillHelper(value, a)))
File "canvas.py", line 122, in fillHelper
return self.getGradient(rgb[5:-1])
AttributeError: Canvas instance has no attribute 'getGradient'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions