strider1551 / djvubind

Combine multiple image files into an optimally compressed djvu file.
19 stars 6 forks source link

Fix for the case that the ocr option is a bool #13

Closed ospalh closed 9 years ago

ospalh commented 9 years ago

I thought that pushing new commits would update the pull request #10. Doesn't look like it. So I could not get OCR working until i made this change. I think the problem is that i have no config file. Then self.opts['ocr'] keep the bool type it got earlier, and as it was the bool True and not the string 'True', it got set to False with the old code. The other way to deal with this would be to use a string in line 190, i guess.

(The two lines at the end got removed by emacs, which i have set to remove trailing whitespace automatically.)

This should sets it to False again when the setting is 'False'.