fix alignment of tabs on back of cards when using sameside option

This commit is contained in:
Paul Molodowitch 2013-12-18 07:52:03 -08:00
parent 651eafe78a
commit b38eec7816

View File

@ -125,7 +125,7 @@ class DominionTabs:
self.canvas.setLineWidth(self.options.linewidth) self.canvas.setLineWidth(self.options.linewidth)
cropmarksright = (x == self.numTabsHorizontal-1) cropmarksright = (x == self.numTabsHorizontal-1)
cropmarksleft = (x == 0) cropmarksleft = (x == 0)
if rightSide and not self.options.sameside: if rightSide:
self.canvas.translate(self.tabWidth,0) self.canvas.translate(self.tabWidth,0)
self.canvas.scale(-1,1) self.canvas.scale(-1,1)
if not self.options.cropmarks and not isBack: if not self.options.cropmarks and not isBack:
@ -175,7 +175,7 @@ class DominionTabs:
def drawTab(self, card, rightSide): def drawTab(self, card, rightSide):
#draw tab flap #draw tab flap
self.canvas.saveState() self.canvas.saveState()
if not rightSide or self.options.sameside: if not rightSide:
self.canvas.translate(self.tabWidth-self.tabLabelWidth, self.canvas.translate(self.tabWidth-self.tabLabelWidth,
self.tabHeight-self.tabLabelHeight) self.tabHeight-self.tabLabelHeight)
else: else: