Andre Poenitz wrote:
> What about using '.' instead. Or do not write '*this' at all?

I think the problem is that I access the function from within dispatch, where 
the argument *this is LyXText and from outside, where the available argument 
lt is LyXText *. All of your proposals makes one of these unhappy. So the 
best solution seems to me ATM to call overwriteSelection(lt) from outside and 
overwriteSelection(bv->getLyXText()) from within dispatch() on this function:

void overwriteSelection(LyXText * lt)
        {
                if (lt->selection.set()) {
                        lt->update();
                        lt->cutSelection(true, false);
                        lt->update();
                }
        }

What are the disadvantages of this (in transparent words)?

Juergen.

Reply via email to