projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
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
diff --git
a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp
b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp
index
40d14df
..
c0423f0
100644
(file)
--- a/
synfig-studio/trunk/src/synfigapp/canvasinterface.cpp
+++ b/
synfig-studio/trunk/src/synfigapp/canvasinterface.cpp
@@
-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
{
// 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"));
if(!outside_canvas)
throw String(_("Unable to open this composition"));