Remove unnecessary check for default color
(cherry picked from commit 58e02f14e6
)
This commit is contained in:
parent
02ace7b6b8
commit
7d96509d74
1 changed files with 0 additions and 4 deletions
|
@ -1434,7 +1434,6 @@ public class ConfigureMapMenu {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String parseTrackColorName(RenderingRulesStorage renderer, int color) {
|
public static String parseTrackColorName(RenderingRulesStorage renderer, int color) {
|
||||||
int defaultColor = -1;
|
|
||||||
RenderingRule gpxRule = null;
|
RenderingRule gpxRule = null;
|
||||||
if (renderer != null) {
|
if (renderer != null) {
|
||||||
gpxRule = renderer.getRenderingAttributeRule("gpx");
|
gpxRule = renderer.getRenderingAttributeRule("gpx");
|
||||||
|
@ -1446,9 +1445,6 @@ public class ConfigureMapMenu {
|
||||||
if (!Algorithms.isEmpty(cName) && color == r.getIntPropertyValue(COLOR_ATTR)) {
|
if (!Algorithms.isEmpty(cName) && color == r.getIntPropertyValue(COLOR_ATTR)) {
|
||||||
return cName;
|
return cName;
|
||||||
}
|
}
|
||||||
if (cName == null && defaultColor == -1) {
|
|
||||||
defaultColor = r.getIntPropertyValue(COLOR_ATTR);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return Algorithms.colorToString(color);
|
return Algorithms.colorToString(color);
|
||||||
|
|
Loading…
Reference in a new issue