On Jul 16, 2007, at 1:11 PM, Abdelrazak Younes wrote:

Abdelrazak Younes wrote:
Bennett Helm wrote:
On Jul 16, 2007, at 11:45 AM, Abdelrazak Younes wrote:

Bennett Helm wrote:
I'm using pdfsync via lyxpipe to have LyX jump to where I click in the .pdf file of an open LyX document. Recently I've been getting crashes. Here's the console output: Assertion triggered in void lyx::Text::setCursorIntern (lyx::Cursor&, lyx::pit_type, lyx::pos_type, bool, bool) by failing check "this == cur.text()" in file Text2.cpp:746
Is there more info I should provide?

A backtrace :-)

How's this? --

Assertion triggered in void lyx::Text::setCursorIntern (lyx::Cursor&, lyx::pit_type, lyx::pos_type, bool, bool) by failing check "this == cur.text()" in file Text2.cpp:746
Could you please verify that your cursor was not within an inset before using pdfsync? Could you also try to reproduce the crash when the cursor is in the _main_ text? If you cannot, then I might be able to cure this bug.

If you confirm then you might want to try the attached patch.

That seems to fix the problem. (I've tried in various types of insets without a problem.)

One additional (minor) problem I've noticed: if you start with a saved file, and then use pdfsync to jump to a location in that file, it marks the file as changed. Shall I file this as a separate bug report?

Bennett

Reply via email to