1.1 --- a/floatimageobj.cpp Tue Jun 06 14:58:11 2006 +0000
1.2 +++ b/floatimageobj.cpp Tue Sep 05 07:56:57 2006 +0000
1.3 @@ -104,9 +104,9 @@
1.4
1.5 }
1.6
1.7 -void FloatImageObj::save (const QString &fn, const char *format)
1.8 +void FloatImageObj::save (const QString &fn, const QString &format)
1.9 {
1.10 - icon->save (fn,format);
1.11 + icon->save (fn,qPrintable (format));
1.12 }
1.13
1.14 void FloatImageObj::setOriginalFilename(const QString & fn)
1.15 @@ -182,14 +182,10 @@
1.16 QString zAttr=attribut ("zPlane",QString().setNum(zPlane));
1.17 QString url;
1.18
1.19 - // prevent saving as GIF
1.20 - if (filetype=="GIF")
1.21 - filetype="PNG";
1.22 -
1.23 url="images/"+prefix+"image-" + QString().number(saveCounter,10) + "." +filetype;
1.24
1.25 // And really save the image
1.26 - icon->save (tmpdir + "/" + url, filetype);
1.27 + icon->save (tmpdir + "/" + url, "PNG");
1.28
1.29 QString nameAttr=attribut ("orgName",originalFilename);
1.30