Author: Carlos Lopez <[email protected]>
Date:   Sun Nov  6 19:57:24 2011 +0100

For Importer layer, even if file is physically impossible to open set the 
parameter with the passed file name.
This would allow to load and save Synfig's documents with paths for imported 
files badly adjusted but that user doesn't want to modify.

---

 synfig-core/src/modules/lyr_std/import.cpp |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/synfig-core/src/modules/lyr_std/import.cpp 
b/synfig-core/src/modules/lyr_std/import.cpp
index 5df1393..b8e0541 100644
--- a/synfig-core/src/modules/lyr_std/import.cpp
+++ b/synfig-core/src/modules/lyr_std/import.cpp
@@ -160,6 +160,9 @@ Import::set_param(const String & param, const ValueBase 
&value)
                        if(!newimporter)
                        {
                                synfig::error(strprintf("Unable to create an 
importer object with file \"%s\"",filename_with_path.c_str()));
+                               importer=0;
+                               filename=newfilename;
+                               abs_filename=absolute_path(filename_with_path);
                                surface.clear();
                                return false;
                        }


------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to