Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:

Abdelrazak> This is very tricky and it was very hard to find. The
Abdelrazak> problem is that GuiWorkArea::paintEvent() uses the Buffer
Abdelrazak> before it is completely constructed. Buffer::pimpl is
Abdelrazak> still equal to 0, hence the crash in the Painter.

Abdelrazak> The attached patch partly solves the problem but there is
Abdelrazak> more to it. It fixes the painter crash but there are some
Abdelrazak> other crashes behind :-(

What about removing the buffer from the lyxview, and reading from disk
as with a new file?

??? This is what is done already in BufferView::loadLyXFile().

This way qt would not try to display a file that
does not exist. I would really a clean solution like that to tricks
like you propose.

Read my last patch more carefully before further commenting.


Or what about telling Qt to give up updates until we are done?

??? this is exactly what I am doing there:

+       static_cast<GuiWorkArea *>(work_area_)->setUpdatesEnabled(!yes);


I am glad I am not the only one bitten by the fact that Qt knows
better than I do what should be done...

Hey, I am just correcting bugs created during the Denmark WorkArea/Cursor reorganisation here.


BTW, since we are mentioning painting: when I start lyx there is a
distinct white flash before showing the banner. This is ugly. If I run
lyx remotely (over ssh on a gigabit connection!) form an equally fast
machine, the flashing is very very noticeable.

I don't see that.

Abdel.

Reply via email to