mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Implemented nicer string collation, with support for composed characters and accents;
Fixed symbol filter bug, green was not made transparent; Slightly nicer error messages when forgeting 'type' keys. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@544 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -52,7 +52,7 @@ void filter_symbol(Image& symbol, const SymbolFilter& filter) {
|
||||
// Determine set
|
||||
// green -> border or outside
|
||||
// green+red=white -> border
|
||||
if (data[1] != data[2]) {
|
||||
if (data[0] != data[2]) {
|
||||
// yellow/blue = editing hint, leave alone
|
||||
} else {
|
||||
SymbolSet point = data[1] ? (data[0] ? SYMBOL_BORDER : SYMBOL_OUTSIDE) : SYMBOL_INSIDE;
|
||||
@@ -97,8 +97,12 @@ intrusive_ptr<SymbolFilter> read_new<SymbolFilter>(Reader& reader) {
|
||||
if (fill_type == _("solid")) return new_intrusive<SolidFillSymbolFilter>();
|
||||
else if (fill_type == _("linear gradient")) return new_intrusive<LinearGradientSymbolFilter>();
|
||||
else if (fill_type == _("radial gradient")) return new_intrusive<RadialGradientSymbolFilter>();
|
||||
else {
|
||||
throw ParseError(_ERROR_1_("unsupported fill type", fill_type));
|
||||
else if (fill_type.empty()) {
|
||||
reader.warning(_ERROR_1_("expected key", _("fill type")));
|
||||
throw ParseError(_ERROR_("aborting parsing"));
|
||||
} else {
|
||||
reader.warning(_ERROR_1_("unsupported fill type", fill_type));
|
||||
throw ParseError(_ERROR_("aborting parsing"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user