Martin Vermeer wrote:

> On Fri, Dec 16, 2005 at 07:16:51PM +0100, Juergen Spitzmueller wrote:
>> Martin Vermeer wrote:
>> > BTW do you know of an easy way to test whether the cursor is in a given
>> > lyxtext? I would need that later on.
>> 
>> Maybe DocIterator::text()
> 
> And how do you compare (==) the current text (paintPar argument) to the
> cursor's text? There seems not to be an operator== for lyxtext pointers.
> 
> Sould one be defined?

Why? At several places we have in LyXText member functions

BOOST_ASSERT(cur.text() == this)

Does the test

cur.text() == *text

with an appropriate variable cur in paintPar() not work?


Georg

Reply via email to