]> git.lyx.org Git - features.git/commitdiff
Revert unintended commit
authorPavel Sanda <sanda@lyx.org>
Sat, 4 Apr 2009 09:31:34 +0000 (09:31 +0000)
committerPavel Sanda <sanda@lyx.org>
Sat, 4 Apr 2009 09:31:34 +0000 (09:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29078 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBranch.cpp

index 50a3147b8121c16cad77c5748ff85019a0e65a7b..45e4ebe72f9b813efb2f05d9b09d9cc3cf8523b5 100644 (file)
@@ -205,14 +205,8 @@ bool InsetBranch::isBranchSelected() const
        Buffer const & realbuffer = *buffer().masterBuffer();
        BranchList const & branchlist = realbuffer.params().branchlist();
        Branch const * ourBranch = branchlist.find(params_.branch);
-       // this branch is defined in child only
-       if (!ourBranch) {
-               ourBranch = buffer().params().branchlist().find(params_.branch);
-               if (ourBranch)
-                       return ourBranch->isSelected();
-               else
-                       return false;
-       }
+       if (!ourBranch)
+               return false;
        return ourBranch->isSelected();
 }