simpler
This commit is contained in:
parent
db08965bd9
commit
f5d91a1d9a
1 changed files with 1 additions and 9 deletions
|
@ -52,7 +52,7 @@ proc initSvgCtx(): SvgCtx =
|
|||
result.strokeOpacity = 1
|
||||
result.linearGradients = newTable[string, LinearGradient]()
|
||||
|
||||
proc decodeSvgCtxInternal(inherited: SvgCtx, node: XmlNode): SvgCtx =
|
||||
proc decodeSvgCtx(inherited: SvgCtx, node: XmlNode): SvgCtx =
|
||||
result = inherited
|
||||
|
||||
proc splitArgs(s: string): seq[string] =
|
||||
|
@ -316,14 +316,6 @@ proc decodeSvgCtxInternal(inherited: SvgCtx, node: XmlNode): SvgCtx =
|
|||
else:
|
||||
failInvalidTransform(transform)
|
||||
|
||||
proc decodeSvgCtx(inherited: SvgCtx, node: XmlNode): SvgCtx =
|
||||
try:
|
||||
decodeSvgCtxInternal(inherited, node)
|
||||
except PixieError as e:
|
||||
raise e
|
||||
except:
|
||||
raise currentExceptionAsPixieError()
|
||||
|
||||
proc fill(img: Image, ctx: SvgCtx, path: Path) {.inline.} =
|
||||
if ctx.display and ctx.opacity > 0:
|
||||
let paint = newPaint(ctx.fill)
|
||||
|
|
Loading…
Reference in a new issue