On 20-Sep-2001 Jean-Marc Lasgouttes wrote:
> This would work indeed. Note however that, by not setting the
> selection (that will be cleared afterwards), we avoid an annoying
> flicker on screen. That's why I think my solution makes more sense.
Sure I already told you to apply your solution if
On 19-Sep-2001 Jean-Marc Lasgouttes wrote:
> This happens when the cursor is between two spaces. If you do a
> setCursor from there, the extra space is deleted, the row is deleted
> and reallocated, so that the cursor that you have saved as
> selection.cursor earlier is lost.
Ok! Why then not d
On 19-Sep-2001 Jean-Marc Lasgouttes wrote:
> Not really, because the selection.cursor = cursor is done _before_
> doing a setcursor (which invalidates selection.cursor). So it would
??? Why should a setCursor invalidate a selection.cursor?
Could you explain please?
> I'd rather have a
> val
On 19-Sep-2001 Jean-Marc Lasgouttes wrote:
> What is the right way to re-validate (ie rebuild row and other info
> from par+pos) a cursor (or the selection)?
Hmm, if I don't err there is a setCursor(bview, cursor, par, pos) call
so instead of doing "selection.cursor = cursor" we would have to d
On 19-Sep-2001 Jean-Marc Lasgouttes wrote:
> But the only caller to pasteSelection is BufferView::paste, which does
> a LyXText::clearSelection afterwards. So it should be safe, isn't it?
> I tried things like what you suggest and did not see any problem.
Maybe this was old cruft from pre-CutAn
On 18-Sep-2001 Jean-Marc Lasgouttes wrote:
> @@ -1849,9 +1849,7 @@
> setCursor(bview, cursor.par(), cursor.pos());
> clearSelection();
>
> - selection.cursor = cursor;
> setCursor(bview, actpar, pos);
> - setSelection(bview);
> updateCounters(bview, cursor.ro
On 12 Sep 2001, Jean-Marc Lasgouttes wrote:
> What I suspect is that you pasted something with an end-of-paragraph
> at the end, so that this created an empty paragraph. Then LyX in its
> infinite wisdom decided to remove this empty paragraph, but forgot to
> tell everybody about that :)
If you
On 12 Sep 2001, Jean-Marc Lasgouttes wrote:
> > "Michael" == Michael Schmitt <[EMAIL PROTECTED]> writes:
>
> Michael> Hi,
>
> Michael> does anybody have an idea why this happens?
>
> It is probably yet again
> LyXText::deleteEmptyParagraphMechanism(BufferView*,const
>LyXCursor&)c
Hi,
does anybody have an idea why this happens?
FMR: Free memory read
This is occurring while in:
Row::baseline()const [lyxrow.C:95]
BufferView::Pimpl::toggleSelection(bool)
[BufferView_pimpl.C:1310]
BufferView::toggleSelection(bool) [BufferView.C