On Sat, Jul 08, 2000 at 12:05:27PM -0500, edscott wrote:
> 
> Today LyX refused to close again, after the "unable to delete non-existent
> directory", and I verified that the patch I sent for this problem does not work
> (the other patches sent do work well).
[...]
> I will keep trying to figure out what triggers this problem, in case the LyX
> team has not found and eliminated it. I will not sent any other patches for
> this problem until I have verified them (which will take a  while).

The following sequence triggers this bug:
1. Press ctrl+c (copy) when there is no selection.
2. Press the middle mouse button.
3. Try to quit from LyX.

I've managed to find the bug: in request_clipboard_cb() in WorkArea.C,
if the clipboard is empty then clipboard_read is not set to true,
causing an endless loop in WorkArea::getClipboard().

I've attached a patch that fixes this (it should also be fixed in 1.1.5fix1)

patch.gz

Reply via email to