fix logic of RouteUI::set_color_from_route()
This commit is contained in:
parent
8a6e9c19d7
commit
176660fff4
@ -1599,7 +1599,11 @@ RouteUI::route_state_id () const
|
|||||||
int
|
int
|
||||||
RouteUI::set_color_from_route ()
|
RouteUI::set_color_from_route ()
|
||||||
{
|
{
|
||||||
return 0;
|
if (_route->presentation_info().color_set()) {
|
||||||
|
return 0; /* nothing to do */
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1; /* pick a color */
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @return true if this name should be used for the route, otherwise false */
|
/** @return true if this name should be used for the route, otherwise false */
|
||||||
|
Loading…
Reference in New Issue
Block a user