mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Copy/paste error in BranchList::setColors
Spotted by coverity.
This commit is contained in:
parent
ef091ca0ea
commit
5366666c83
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user