implemented import formats

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@102 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2006-12-09 23:22:33 +00:00
parent c130916465
commit a400644b25
12 changed files with 260 additions and 18 deletions
+3 -1
View File
@@ -139,7 +139,9 @@ class ChoiceValue : public Value {
public:
inline ChoiceValue(const ChoiceFieldP& field)
: Value(field)
, value(field->initial, true)
, value(field->initial.empty()
? field->choices->choiceName(0) // first choice
: field->initial, true)
{}
DECLARE_HAS_FIELD(Choice)