]> git.lyx.org Git - lyx.git/commitdiff
insetbranch.C (linuxdoc, docbook): minor fix.
authorJosé Matox <jamatos@lyx.org>
Wed, 1 Oct 2003 15:15:02 +0000 (15:15 +0000)
committerJosé Matox <jamatos@lyx.org>
Wed, 1 Oct 2003 15:15:02 +0000 (15:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7846 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetbranch.C

index 993e7f3ec6279ca8d5a431f42782884e477dc356..73e4e2bd56945d54cba6d851e840e802e99e8dc6 100644 (file)
@@ -1,3 +1,7 @@
+2003-10-01  José Matos  <jamatos@lyx.org>
+
+       * insetbranch.C (linuxdoc, docbook): minor fix.
+
 2003-10-01  Angus Leeming  <leeming@lyx.org>
 
        * ExternalTemplace.[Ch]: introduce namespace lyx::external.
index 1262a52fad35b0089251fb19edf521a490350a32..0193d450ef60e82e815903e61ed75915f2499900 100644 (file)
@@ -157,15 +157,17 @@ int InsetBranch::latex(Buffer const & buf, ostream & os,
 }
 
 
-int InsetBranch::linuxdoc(Buffer const &, std::ostream &) const
+int InsetBranch::linuxdoc(Buffer const & buf, std::ostream & os) const
 {
-       return 0;
+       string const branch_sel = buf.params().branchlist().allSelected();
+       if (branch_sel.find(params_.branch, 0) != string::npos)
+               return inset.linuxdoc(buf, os);
+       return 0;
 }
 
 
 int InsetBranch::docbook(Buffer const & buf, std::ostream & os, bool mixcont) const
 {
-       // untested - MV
        string const branch_sel = buf.params().branchlist().allSelected();
        if (branch_sel.find(params_.branch, 0) != string::npos)
                return inset.docbook(buf, os, mixcont);