Re: HTML export images broken (ie_exp_HTML.cpp)


Subject: Re: HTML export images broken (ie_exp_HTML.cpp)
From: j.m.maurer (j.m.maurer@student.utwente.nl)
Date: Sat Dec 22 2001 - 10:25:13 CST


Is someone working on this? If not, than I shall fix it....

Marc aka Uwog

PS. sorry Adrian for sending it to you personally :)

On Sat, 2001-12-22 at 16:15, Adrian Phillips wrote:
>
> 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 - 10:26:26 CST