Change default to /Fit
This commit is contained in:
parent
cd17b81f16
commit
3256995075
|
@ -1,6 +1,6 @@
|
||||||
""" Bookmark class """
|
""" Bookmark class """
|
||||||
class Bookmark:
|
class Bookmark:
|
||||||
def __init__(self, page, title, level=1, fit='/FitV'):
|
def __init__(self, page, title, level=1, fit='/Fit'):
|
||||||
self.page = page
|
self.page = page
|
||||||
self.title = title
|
self.title = title
|
||||||
self.level = level
|
self.level = level
|
||||||
|
@ -11,7 +11,8 @@ class Bookmark:
|
||||||
elif (self.fit == '/FitH' or self.fit == '/FitV' or self.fit == '/FitBH' or self.fit == '/FitBV'):
|
elif (self.fit == '/FitH' or self.fit == '/FitV' or self.fit == '/FitBH' or self.fit == '/FitBV'):
|
||||||
self.cords = [(0)]
|
self.cords = [(0)]
|
||||||
else:
|
else:
|
||||||
self.fit = '/FitB'
|
# Invalid value passed
|
||||||
|
self.fit = '/Fit'
|
||||||
self.cords = []
|
self.cords = []
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue