Index: src/af/xap/gtk/xap_UnixApp.h =================================================================== --- src/af/xap/gtk/xap_UnixApp.h (révision 28524) +++ src/af/xap/gtk/xap_UnixApp.h (copie de travail) @@ -60,6 +60,7 @@ } virtual bool initialize(const char * szKeyBindingsKey, const char * szKeyBindingsDefaultValue); + void shutdown(); virtual XAP_Frame * newFrame() = 0; virtual void reallyExit(); Index: src/af/xap/gtk/xap_UnixApp.cpp =================================================================== --- src/af/xap/gtk/xap_UnixApp.cpp (révision 28524) +++ src/af/xap/gtk/xap_UnixApp.cpp (copie de travail) @@ -179,6 +179,11 @@ return true; } +void XAP_UnixApp::shutdown() +{ + libgoffice_shutdown(); +} + void XAP_UnixApp::reallyExit() { Index: src/wp/ap/gtk/ap_UnixApp.cpp =================================================================== --- src/wp/ap/gtk/ap_UnixApp.cpp (révision 28524) +++ src/wp/ap/gtk/ap_UnixApp.cpp (copie de travail) @@ -53,6 +53,7 @@ #include "ap_UnixFrame.h" #include "ap_UnixFrameImpl.h" #include "ap_UnixApp.h" +#include "xap_UnixApp.h" #ifdef ENABLE_SPELL #include "spell_manager.h" @@ -411,6 +412,7 @@ { if (m_prefs->getAutoSavePrefs()) m_prefs->savePrefsFile(); + XAP_UnixApp::shutdown(); } return true; } Index: src/wp/impexp/xp/ie_exp_AbiWord_1.cpp =================================================================== --- src/wp/impexp/xp/ie_exp_AbiWord_1.cpp (révision 28524) +++ src/wp/impexp/xp/ie_exp_AbiWord_1.cpp (copie de travail) @@ -621,13 +621,16 @@ pAP->getAttribute("dataid",szPropVal); if(szPropVal != NULL) { + bool has_svg; tag = ">"; if (bNewLineAfter) tag += "\n"; + std::string sID = std::string("snapshot-svg-") + szPropVal; + has_svg = m_pDocument->getDataItemDataByName(sID.c_str (), NULL, NULL, NULL); m_pie->write (tag.utf8_str (), tag.byteLength()); tag.clear(); tag = "getDataItemDataByName(sPNGname->utf8_str(), NULL, NULL, NULL)) + *sPNGname = UT_UTF8String("snapshot-png-") + image_name; UT_DEBUGMSG(("resource name #%s# recorded \n",sPNGname->utf8_str())); m_pUsedImages.insert(sPNGname->utf8_str()); }