]> git.lyx.org Git - features.git/commitdiff
Forgot this in previous commit.
authorAbdelrazak Younes <younes@lyx.org>
Wed, 23 Jul 2008 12:55:24 +0000 (12:55 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Wed, 23 Jul 2008 12:55:24 +0000 (12:55 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25845 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetText.cpp
src/insets/InsetText.h

index 576966e8b9d820e090721242073d8a29a6cc67d2..984d3b2f409b583170c4a559bf7a68bcae4df9c8 100644 (file)
@@ -92,6 +92,14 @@ InsetText::InsetText()
 {}
 
 
+void InsetText::setBuffer(Buffer & buf)
+{
+       ParagraphList::iterator end = paragraphs().end();
+       for (ParagraphList::iterator it = paragraphs().begin(); it != end; ++it)
+               it->setBuffer(buf);
+}
+
+
 void InsetText::initParagraphs(Buffer const & buf)
 {
        LASSERT(paragraphs().empty(), /**/);
index 33c5b474b3614b29d6470126a4ab3497f9da9e90..7be51ddd0113ad3336041db572ab0397081ed4d8 100644 (file)
@@ -42,6 +42,8 @@ public:
        InsetText(InsetText const &);
        ///
        void initParagraphs(Buffer const & buffer);
+       ///
+       void setBuffer(Buffer &);
 
        ///
        Dimension const dimension(BufferView const &) const;