Copy/paste error in BranchList::setColors

Spotted by coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2021-01-29 18:51:19 +01:00
parent ef091ca0ea
commit 5366666c83

View File

@ -113,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);