]> git.lyx.org Git - features.git/commitdiff
ensure child document loading also works when under version control
authorAllan Rae <rae@lyx.org>
Fri, 21 Feb 2003 05:52:34 +0000 (05:52 +0000)
committerAllan Rae <rae@lyx.org>
Fri, 21 Feb 2003 05:52:34 +0000 (05:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6216 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetinclude.C

index 2d76fbb2aaf28bc39ea2fe511f7907c86c4eb7a5..5884f25ee3a9f0230613e516ebabbaab61c19126 100644 (file)
@@ -1,3 +1,7 @@
+2003-02-21  Allan Rae  <rae@lyx.org>
+
+       * insetinclude.C (loadIfNeeded): ensure loading also works when
+       child document is under version control.
 
 2003-02-17 André Pönitz <poenitz@gmx.net>
        
index 2b0b6bb6f2220ce19d272c0e2c4fb1cc38aec6b2..54b53c508ec80cf79eafb23fb68c5191f594ba5e 100644 (file)
@@ -271,7 +271,7 @@ bool InsetInclude::loadIfNeeded() const
        if (!finfo.isOK())
                return false;
 
-       return bufferlist.readFile(getFileName(), !finfo.writable()) != 0;
+       return bufferlist.loadLyXFile(getFileName(), false) != 0;
 }