Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/ep_stamp_svg.py
diff options
context:
space:
mode:
authorNostalghia <b.vehikel@googlemail.com>2010-05-22 13:52:30 (GMT)
committer Nostalghia <b.vehikel@googlemail.com>2010-05-22 13:52:30 (GMT)
commite24ca571a8dccf66740d66e50b47862b5e28adc9 (patch)
treec65719efcd250439c45c96537f4e49654c51d145 /ep_stamp_svg.py
parent8394595622cbeb9894da9e83fd3dadacd6266cf6 (diff)
Bug fixing the mask modifier and border modifier in the rendering engine.
This is not backward compatible.
Diffstat (limited to 'ep_stamp_svg.py')
-rw-r--r--ep_stamp_svg.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ep_stamp_svg.py b/ep_stamp_svg.py
index dc37ed4..51e6536 100644
--- a/ep_stamp_svg.py
+++ b/ep_stamp_svg.py
@@ -23,6 +23,7 @@ import model_allele
import model_constraintpool
import ka_importer
from gettext import gettext as _
+import ka_debug
STAMPREPEATER_CONSTRAINT = 'stamprepaeterconstraint'
THEME_CONSTRAINT = 'themeconstraint'
@@ -166,11 +167,15 @@ class SvgStamp(model_allele.Allele):
(state + rx) % len(self.mapping)]
% len(svg_image_list)]
ctx.save()
+ ka_debug.matrix_s(ctx.get_matrix())
svg = rsvg.Handle(file=svg_pathname)
ctx.translate(-self.dw/2.0+point[0], -self.dh/2.0+point[1])
+ ka_debug.matrix(ctx.get_matrix())
ctx.scale(self.dw/100, self.dh/100)
+ ka_debug.matrix(ctx.get_matrix())
svg.render_cairo(ctx)
svg.close()
+ ka_debug.matrix_r(ctx.get_matrix())
ctx.restore()
def explain(self):