Edit book: Fox pasting in the image editor broken

This commit is contained in:
Kovid Goyal 2013-12-19 18:42:29 +05:30
parent c8a2ac65e0
commit 3a542ad3d9

View File

@ -211,7 +211,8 @@ class Replace(Command):
def __init__(self, img, text, canvas): def __init__(self, img, text, canvas):
self.after_image = img self.after_image = img
Command.__init__(self, text, canvas) self.TEXT = text
Command.__init__(self, canvas)
def __call__(self, canvas): def __call__(self, canvas):
if canvas.has_selection and canvas.selection_state.rect is not None: if canvas.has_selection and canvas.selection_state.rect is not None: