int LyXText::top_y() const
{
- if (anchor_row_ == rowlist_.end() )
+ if (anchor_row_ == rowlist_.end())
return 0;
return anchor_row_->y() + anchor_row_offset_;
int LyXText::workWidth(Inset const * inset) const
{
- ParagraphList::iterator par = ownerParagraphs().find(*inset->parOwner());
+ ParagraphList::iterator par = std::find(ownerParagraphs().begin(),
+ ownerParagraphs().end(),
+ *inset->parOwner());
//lyx::Assert(par);
pos_type pos = par->getPositionOfInset(inset);