Subject: HTML export images broken (ie_exp_HTML.cpp)
From: Adrian Phillips (adrianp@powertech.no)
Date: Sat Dec 22 2001 - 09:15:36 CST
Version 1.109 of ie_exp_HTML.cpp hasd the following change :-
revision 1.109
date: 2001/12/12 18:37:26; author: dom; state: Exp; lines: +3 -3
2337
***************
*** 2131,2141 ****
int result = m_pDocument->getApp()->makeDirectory(fname, 0750);
if (!UT_strcmp(szMimeType, "image/svg-xml"))
! sprintf(fname, "%s/%d.svg", fname, loc);
if (!UT_strcmp(szMimeType, "text/mathml"))
! sprintf(fname, "%s/%d.mathml", fname, loc);
else // PNG Image
! sprintf(fname, "%s/%d.png", fname, loc);
fp = fopen (fname, "wb+");
--- 2131,2141 ----
int result = m_pDocument->getApp()->makeDirectory(fname, 0750);
if (!UT_strcmp(szMimeType, "image/svg-xml"))
! sprintf(fname, "%s/%s_%d.svg", fname, szName, loc);
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);
fp = fopen (fname, "wb+");
Which means that saving as HTML tries to create a file using the
following (after adding DEBUG to see what was happening) :-
UT_DEBUGMSG(("HTML opening %s, %s, %d\n", fname, szName, loc));
DEBUG: HTML opening /home/adrian/work/docs/email/virusscan/mail_hub.html_d, /home/adrian/work/docs/email/virusscan/mail_setup.png_3, 0
I cansee from the bug report that Dom was trying to make the names
more unique but szName seems to have the full directory path which
causes problems.
Sincerely,
Adrian Phillips
-- Your mouse has moved. Windows NT must be restarted for the change to take effect. Reboot now? [OK]
This archive was generated by hypermail 2b25 : Sat Dec 22 2001 - 09:16:15 CST