Added image export, tested mtgeditor import

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@119 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-18 23:17:19 +00:00
parent 9ddc690d68
commit 4720fbc188
4 changed files with 94 additions and 2 deletions
+6 -1
View File
@@ -192,7 +192,12 @@ SetP MtgEditorFileFormat::importSet(const String& filename) {
// Load stylesheet
if (layout != _("8e")) {
set->stylesheet = StyleSheet::byGameAndName(*set->game, _("old"));
try {
set->stylesheet = StyleSheet::byGameAndName(*set->game, _("old"));
} catch (const Error&) {
// If old style doesn't work try the new one
set->stylesheet = StyleSheet::byGameAndName(*set->game, _("new"));
}
} else {
set->stylesheet = StyleSheet::byGameAndName(*set->game, _("new"));
}