When editing in the editor panel, position is automatically synced in the preview, as expected. But when I click in the preview, instead of sending me to the correct line in the editor panel, I get this error:
Code:
calibre, version 1.24.0
ERROR: Unhandled exception: <b>AttributeError</b>:'QString' object has no attribute 'rstrip'
calibre 1.24* isfrozen: True is64bit: False
Linux-3.2.0-34-generic-i686-with-debian-wheezy-sid Linux ('32bit', 'ELF')
('Linux', '3.2.0-34-generic', '#53-Ubuntu SMP Thu Nov 15 10:49:02 UTC 2012')
Python 2.7.5
Linux: ('debian', 'wheezy/sid', '')
Traceback (most recent call last):
File "/home/schwartze/Downloads/git/calibre/src/calibre/gui2/tweak_book/boss.py", line 1042, in sync_editor_to_preview
editor.current_line = lnum
File "/home/schwartze/Downloads/git/calibre/src/calibre/gui2/tweak_book/editor/widget.py", line 101, in fset
self.editor.go_to_line(val)
File "/home/schwartze/Downloads/git/calibre/src/calibre/gui2/tweak_book/editor/text.py", line 230, in go_to_line
text = unicode(c.selectedText().rstrip('\0'))
AttributeError: 'QString' object has no attribute 'rstrip'
I am running from source, so I tested it when setting CALIBRE_DEVELOP_FROM to null, and no longer get the error.