diff -r d045ba89798e -r 89dd2219982f mapeditor.cpp --- a/mapeditor.cpp Wed Feb 25 12:44:10 2009 +0000 +++ b/mapeditor.cpp Thu Mar 05 09:33:30 2009 +0000 @@ -326,10 +326,13 @@ { if ( typeid(*saveSel) == typeid(BranchObj) ) // Save Subtree - s+=((BranchObj*)(saveSel))->saveToDir(tmpdir,prefix,offset); - else if ( typeid(*saveSel) == typeid(FloatImageObj) ) - // Save image - s+=((FloatImageObj*)(saveSel))->saveToDir(tmpdir,prefix); + s+=((BranchObj*)saveSel)->saveToDir(tmpdir,prefix,offset); + else + { + if ( typeid(*saveSel) == typeid(FloatImageObj) ) + // Save image + s+=((FloatImageObj*)saveSel)->saveToDir(tmpdir,prefix); + } } // Save local settings @@ -1842,10 +1845,13 @@ // TODO take care of multiselections } + // FIXME trying to debug save problem + if (saveFile.length()<1000) + QMessageBox::critical (0,"Critical error in MapEditor::save",QString("saveFile is too small:\n%1").arg(saveFile)); if (!saveStringToDisk(fileDir+mapFileName,saveFile)) { err=aborted; - qWarning ("ME::saveStringToDisk failed!"); + QMessageBox::critical (0,"Critical error in MapEditor::save",QString("could not sage %1").arg(fileDir+mapFileName)); } if (zipped) @@ -5294,7 +5300,6 @@ else if (debug) cout <<" ME::autosave rejected, file on disk is newer than last save.\n"; - } }