Fix IMPORT_AS macro to support set/get static parameter option.
authorCarlos Lopez <genetita@gmail.com>
Sun, 29 Aug 2010 08:13:58 +0000 (10:13 +0200)
committerCarlos Lopez <genetita@gmail.com>
Sun, 29 Aug 2010 08:13:58 +0000 (10:13 +0200)
synfig-core/src/synfig/layer.h

index 87ec5bb..a867197 100644 (file)
@@ -93,7 +93,7 @@
        if (param==y && value.same_type_as(x))                                                                                          \
        {                                                                                                                                                                       \
                value.put(&x);                                                                                                                                  \
-               set_param_static(#x,value.get_static());                                                                                \
+               set_param_static(y,value.get_static());                                                                         \
                return true;                                                                                                                                    \
        }