diff -r 608f976aa7bb -r 9ad3d0391be1 floatimageobj.cpp --- a/floatimageobj.cpp Tue Jun 06 14:58:11 2006 +0000 +++ b/floatimageobj.cpp Tue Sep 05 07:56:57 2006 +0000 @@ -104,9 +104,9 @@ } -void FloatImageObj::save (const QString &fn, const char *format) +void FloatImageObj::save (const QString &fn, const QString &format) { - icon->save (fn,format); + icon->save (fn,qPrintable (format)); } void FloatImageObj::setOriginalFilename(const QString & fn) @@ -182,14 +182,10 @@ QString zAttr=attribut ("zPlane",QString().setNum(zPlane)); QString url; - // prevent saving as GIF - if (filetype=="GIF") - filetype="PNG"; - url="images/"+prefix+"image-" + QString().number(saveCounter,10) + "." +filetype; // And really save the image - icon->save (tmpdir + "/" + url, filetype); + icon->save (tmpdir + "/" + url, "PNG"); QString nameAttr=attribut ("orgName",originalFilename);