X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBranchList.cpp;h=fc61065a4b767bf34099498466883204a2e55245;hb=3bf1b97ae547aea5d0243e41b2d8af463a6e40c5;hp=b9024e5fcc21a2421cc3a4da2385960604b16932;hpb=514cd879702dc946b75a4f688e3c67478a767a56;p=features.git diff --git a/src/BranchList.cpp b/src/BranchList.cpp index b9024e5fcc..fc61065a4b 100644 --- a/src/BranchList.cpp +++ b/src/BranchList.cpp @@ -27,14 +27,6 @@ using namespace std; namespace lyx { -Branch::Branch() - : selected_(false), filenameSuffix_(false) -{ - lmcolor_ = "background"; - dmcolor_ = "background"; -} - - docstring const & Branch::branch() const { return branch_; @@ -121,7 +113,7 @@ void Branch::setColors(string const & lmcol, string const & dmcol) else if (lmcolor.size() != 7 || lmcolor[0] != '#') lmcolor = lcolor.getX11HexName(lcolor.getFromLyXName(lmcolor)); if (dmcolor == "none") - lmcolor = lcolor.getX11HexName(Color_background, true); + dmcolor = lcolor.getX11HexName(Color_background, true); else if (dmcolor.size() != 7 || dmcolor[0] != '#') dmcolor = lcolor.getX11HexName(lcolor.getFromLyXName(dmcolor), true);