mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Warn about parse errors in colors
This commit is contained in:
+4
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user