Juergen Spitzmueller wrote:

> Andre Poenitz wrote:
>> InsetText::paragraphs().back() is the last par in this text.
> 
> thanks. is this a bool?

No, a reference to the last par in the list if there is one.
(InsetText::paragraphs() is a std::list<Paragraph>). If you have a
Paragraph par, you can check for &par == &InsetText::paragraphs().back().
Better, if you have an iterator pit pointing to your par in the list and
your inset is called it,

        boost::next(pit) == it.paragraphs().end()

should do the trick.

Regards, Alfredo


Reply via email to