[bookmarks] Fix crash caused by 'None' predefined bookmark color value MAPSME-12897

This commit is contained in:
Anatoliy Tomilov 2020-09-03 16:56:07 +03:00 committed by Maksim Andrianov
parent 39954e3a0a
commit 80a83066ba

View file

@ -30,7 +30,7 @@ inline UIColor * UIColorForBookmarkColor(kml::PredefinedColor color)
case kml::PredefinedColor::Gray: return UIColorForRGB(115, 115, 115);
case kml::PredefinedColor::BlueGray: return UIColorForRGB(89, 115, 128);
case kml::PredefinedColor::None:
case kml::PredefinedColor::Count: UNREACHABLE(); return nil;
case kml::PredefinedColor::Count: return UIColorForBookmarkColor(kml::PredefinedColor::Red);
}
}