mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 13:06:59 -04:00
more script functions and text editor improvements
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@100 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
+5
-4
@@ -12,7 +12,8 @@
|
||||
#include <data/card.hpp>
|
||||
#include <data/keyword.hpp>
|
||||
#include <data/field.hpp>
|
||||
#include <data/field/text.hpp> // for 0.2.7 fix
|
||||
#include <data/field/text.hpp> // for 0.2.7 fix
|
||||
#include <util/tagged_string.hpp> // for 0.2.7 fix
|
||||
#include <script/value.hpp>
|
||||
#include <script/script_manager.hpp>
|
||||
#include <wx/sstream.h>
|
||||
@@ -62,9 +63,9 @@ String Set::typeName() const { return _("set"); }
|
||||
void fix_value_207(const ValueP& value) {
|
||||
if (TextValue* v = dynamic_cast<TextValue*>(value.get())) {
|
||||
// text value -> fix it
|
||||
// v->value.assign( // don't change defaultness
|
||||
// fix_old_tags(v->value); // remove tags
|
||||
// );
|
||||
v->value.assignDontChangeDefault( // don't change defaultness
|
||||
fix_old_tags(v->value()) // remove tags
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user