Making sure default colors aren't being used.

This commit is contained in:
Patrick Shriwise 2019-06-10 19:55:56 -05:00
parent 5c78cd6259
commit 552ab71a50
2 changed files with 8 additions and 0 deletions

View file

@ -403,6 +403,10 @@ Plot::set_default_colors(pugi::xml_node plot_node)
for (auto& c : colors_) {
c = random_color();
// make sure we don't interfere with some default colors
while (c == RED || c == WHITE) {
c = random_color();
}
}
}