]> git.lyx.org Git - lyx.git/blobdiff - src/text.C
"Inter-word Space"
[lyx.git] / src / text.C
index 1e7e38d7602c7179f0c966a90e716c85e99718f4..bc95c353bd216582c69705fcd84df1fce687e817 100644 (file)
@@ -87,7 +87,7 @@ void LyXText::updateRowPositions()
 
 int LyXText::top_y() const
 {
-       if (anchor_row_ == rowlist_.end() )
+       if (anchor_row_ == rowlist_.end())
                return 0;
 
        return anchor_row_->y() + anchor_row_offset_;
@@ -147,7 +147,9 @@ int LyXText::workWidth() const
 
 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);