projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add an option to the setup dialog "Scale New Imported Images to Fit Canvas". Previou...
[synfig.git]
/
synfig-core
/
trunk
/
src
/
tool
/
main.cpp
diff --git
a/synfig-core/trunk/src/tool/main.cpp
b/synfig-core/trunk/src/tool/main.cpp
index
01f4b64
..
13fc438
100644
(file)
--- a/
synfig-core/trunk/src/tool/main.cpp
+++ b/
synfig-core/trunk/src/tool/main.cpp
@@
-1174,11
+1174,12
@@
int main(int argc, char *argv[])
return ret;
// Open the composition
return ret;
// Open the composition
- job_list.front().root=open_canvas(job_list.front().filename);
+ String errors;
+ job_list.front().root=open_canvas(job_list.front().filename, errors);
if(!job_list.front().root)
{
if(!job_list.front().root)
{
- cerr<<_("Unable to
open ")<<job_list.front().filename<<"
."<<endl;
+ cerr<<_("Unable to
load '")<<job_list.front().filename<<"'
."<<endl;
cerr<<_("Throwing out job...")<<endl;
job_list.pop_front();
continue;
cerr<<_("Throwing out job...")<<endl;
job_list.pop_front();
continue;
@@
-1234,9
+1235,13
@@
int main(int argc, char *argv[])
extract_append(imageargs,composite_file);
if(!composite_file.empty())
{
extract_append(imageargs,composite_file);
if(!composite_file.empty())
{
- Canvas::Handle composite(open_canvas(composite_file));
+ String errors;
+ Canvas::Handle composite(open_canvas(composite_file, errors));
if(!composite)
if(!composite)
+ {
+ cerr<<_("Unable to append '")<<composite_file<<"'."<<endl;
break;
break;
+ }
Canvas::reverse_iterator iter;
for(iter=composite->rbegin();iter!=composite->rend();++iter)
{
Canvas::reverse_iterator iter;
for(iter=composite->rbegin();iter!=composite->rend();++iter)
{