]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.cpp
de.po
[lyx.git] / src / insets / InsetBranch.cpp
index 77af2829e1a70421e319ea01bcbc03068aad03d5..d30e348da571f9ecc60a1e6163ad878cf93bc81b 100644 (file)
@@ -17,7 +17,6 @@
 #include "BufferView.h"
 #include "BranchList.h"
 #include "ColorSet.h"
-#include "Counters.h"
 #include "Cursor.h"
 #include "DispatchResult.h"
 #include "FuncRequest.h"
@@ -403,7 +402,10 @@ void InsetBranchParams::write(ostream & os) const
 
 void InsetBranchParams::read(Lexer & lex)
 {
-       lex >> branch;
+       // There may be a space in branch name
+       // if we wanted to use lex>>, the branch name should be properly in quotes
+       lex.eatLine();
+       branch = lex.getDocString();
        lex >> "inverted" >> inverted;
 }