From: Fredrik Tolf Date: Sun, 5 May 2013 00:13:19 +0000 (+0200) Subject: Added a simple copy function for cursors. X-Git-Url: http://dolda2000.com/gitweb/?p=automanga.git;a=commitdiff_plain;h=d8bea304f828ed02f5f1984ae1245b1074c82830 Added a simple copy function for cursors. --- diff --git a/manga/lib.py b/manga/lib.py index 52f75ea..e7c531c 100644 --- a/manga/lib.py +++ b/manga/lib.py @@ -134,7 +134,10 @@ class imgstream(object): class cursor(object): def __init__(self, ob): - self.cur = self.descend(ob) + if isinstance(ob, cursor): + self.cur = ob.cur + else: + self.cur = self.descend(ob) def descend(self, ob): while isinstance(ob, pagelist):