projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove bad tag
[synfig.git]
/
synfig-core
/
trunk
/
src
/
synfig
/
loadcanvas.cpp
diff --git
a/synfig-core/trunk/src/synfig/loadcanvas.cpp
b/synfig-core/trunk/src/synfig/loadcanvas.cpp
index
8c93e1e
..
d93dc09
100644
(file)
--- a/
synfig-core/trunk/src/synfig/loadcanvas.cpp
+++ b/
synfig-core/trunk/src/synfig/loadcanvas.cpp
@@
-1719,6
+1719,11
@@
CanvasParser::parse_layer(xmlpp::Element *element,Canvas::Handle canvas)
String param_name=child->get_attribute("name")->get_value();
String param_name=child->get_attribute("name")->get_value();
+ // SVN r2013 and r2014 renamed all 'pos' and 'offset' parameters to 'origin'
+ // 'pos' and 'offset' will appear in old .sif files; handle them correctly
+ if (param_name == "pos" || param_name == "offset")
+ param_name = "origin";
+
if(child->get_attribute("use"))
{
// If the "use" attribute is used, then the
if(child->get_attribute("use"))
{
// If the "use" attribute is used, then the