When a .sif file fails to load, display the error messages in the studio GUI, not...
[synfig.git] / synfig-studio / trunk / src / synfigapp / canvasinterface.cpp
index 40d14df..c0423f0 100644 (file)
@@ -579,8 +579,8 @@ CanvasInterface::import(const synfig::String &filename, bool /*copy*/)
        // If this is a SIF file, then we need to do things slightly differently
        if(ext=="sif" || ext=="sifz")try
        {
-
-               Canvas::Handle outside_canvas(synfig::open_canvas(filename));
+               String errors;
+               Canvas::Handle outside_canvas(synfig::open_canvas(filename, errors));
                if(!outside_canvas)
                        throw String(_("Unable to open this composition"));