Third time lucky...

This commit is contained in:
Jan 2013-10-17 22:16:46 +11:00
parent 48bc708e0c
commit 5507a708fe

View File

@ -123,15 +123,11 @@ class DialogConvert(QtGui.QProgressDialog):
# For right page (if requested) # For right page (if requested)
if(self.book.imageFlags & ImageFlags.Split): if(self.book.imageFlags & ImageFlags.Split):
# Increment counter to accomodate for extra page # New path based on modified index
index = index + 1 target = os.path.join(self.bookPath, '%05d.png' % (index * 2 + 0))
target = os.path.join(self.bookPath, '%05d.png' % index) self.convertAndSave(source, target, device, flags ^ ImageFlags.Split | ImageFlags.SplitRight, archive, pdf)
self.convertAndSave(source, # Change target once again for left page
target, target = os.path.join(self.bookPath, '%05d.png' % (index * 2 + 1))
device,
flags ^ ImageFlags.Split | ImageFlags.SplitRight,
archive,
pdf)
# Convert page # Convert page
self.convertAndSave(source, target, device, flags, archive, pdf) self.convertAndSave(source, target, device, flags, archive, pdf)