On Wed, Jun 18, 2003 at 01:25:33PM +0200, Juergen Spitzmueller wrote: > 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)?
That's ok. Andre' -- Those who desire to give up Freedom in order to gain Security, will not have, nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)