]> git.lyx.org Git - features.git/blobdiff - src/text.C
parlist-22-a.diff
[features.git] / src / text.C
index 1e7e38d7602c7179f0c966a90e716c85e99718f4..2de8e85e18b22b1b101f6c723b249210cd9bd0e6 100644 (file)
@@ -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);