Warn about parse errors in colors

This commit is contained in:
Twan van Laarhoven
2020-04-26 17:40:22 +02:00
parent c324c8bbbb
commit 8698144ac4
+4 -1
View File
@@ -13,7 +13,10 @@
template <> void Reader::handle(Color& col) {
col = parse_color(getValue());
if (!col.Ok()) col = Color(0,0,0,0);
if (!col.Ok()) {
col = Color(0,0,0,0);
warning(_("Not a valid color value"));
}
}
template <> void Writer::handle(const Color& col) {