1.1 --- a/mapeditor.cpp Mon Oct 22 09:50:08 2007 +0000
1.2 +++ b/mapeditor.cpp Wed Oct 24 14:41:34 2007 +0000
1.3 @@ -681,9 +681,9 @@
1.4 {
1.5 QString fname="";
1.6 ok=true;
1.7 - if (parser.parCount()>=2)
1.8 + if (parser.parCount()>=1)
1.9 // Hey, we even have a filename
1.10 - fname=parser.parString(ok,1);
1.11 + fname=parser.parString(ok,0);
1.12 if (!ok)
1.13 {
1.14 parser.setError (Aborted,"Could not read filename");
1.15 @@ -698,16 +698,16 @@
1.16 ok=true;
1.17 if (parser.parCount()>=2)
1.18 // Hey, we even have a filename
1.19 - fname=parser.parString(ok,1);
1.20 + fname=parser.parString(ok,0);
1.21 if (!ok)
1.22 {
1.23 parser.setError (Aborted,"Could not read filename");
1.24 } else
1.25 {
1.26 QString format="PNG";
1.27 - if (parser.parCount()>2)
1.28 + if (parser.parCount()>=2)
1.29 {
1.30 - format=parser.parString(ok,2);
1.31 + format=parser.parString(ok,1);
1.32 }
1.33 exportImage (fname,false,format);
1.34 }
1.35 @@ -1383,7 +1383,7 @@
1.36 // Any errors?
1.37 if (parser.errorLevel()==NoError)
1.38 {
1.39 - setChanged();
1.40 + // setChanged(); FIXME should not be called e.g. for export?!
1.41 mapCenter->reposition();
1.42 }
1.43 else