The attached patch should get exported images working again... 

Marc aka Uwog

PS. Thx Adrian for the directions you gave in your previous mail on the
error!


Index: abi/src/wp/impexp/xp/ie_exp_HTML.cpp
===================================================================
RCS file: /cvsroot/abi/src/wp/impexp/xp/ie_exp_HTML.cpp,v
retrieving revision 1.111
diff -u -r1.111 ie_exp_HTML.cpp
--- abi/src/wp/impexp/xp/ie_exp_HTML.cpp        2001/12/19 20:45:07     1.111
+++ abi/src/wp/impexp/xp/ie_exp_HTML.cpp        2001/12/22 17:33:53
@@ -1894,7 +1894,7 @@
 
                                        m_utvDataIDs.push_back(dataid);
 
-                                       sprintf(buf, "%d.png", m_iImgCnt++);
+                                       sprintf(buf, "%s.png", UT_basename(szValue));
                                        m_pie->write("<img alt=\"AbiWord Image");
                                        m_pie->write(buf);
                                        m_pie->write("\" src=\"");
@@ -2162,7 +2162,7 @@
                        if (!UT_strcmp(szMimeType, "text/mathml"))
                                sprintf(fname, "%s/%s_%d.mathml", fname, szName, loc);
                        else // PNG Image
-                               sprintf(fname, "%s/%s_%d.png", fname, szName, loc);
+                               sprintf(fname, "%s/%s.png", fname, 
+UT_basename(szName));
                        
                        fp = fopen (fname, "wb+");
                        

Reply via email to