Core: FileStream now does not open directories as files anymore in POSIX

git-svn-id: svn://ultimatepp.org/upp/trunk@13948 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2020-01-28 09:41:31 +00:00
parent 0fa10592f7
commit c25166d044
3 changed files with 7 additions and 5 deletions

View file

@ -350,7 +350,7 @@ String DefaultHtmlObjectSaver::GetHtml(const RichObject& object, const String& l
png.SaveFile(AppendFileName(outdir, name), object.ToImage(sz));
String el = "</a>";
if(IsNull(link)) {
if(psz.cx * psz.cy)
if(psz.cx * psz.cy != 0)
html << "<a href=\"" << lname << "\">";
else
el.Clear();
@ -359,7 +359,7 @@ String DefaultHtmlObjectSaver::GetHtml(const RichObject& object, const String& l
html << "<a href=\"" << link << "\">";
html << "<img src=\"" << name << "\" border=\"0\" alt=\"\">";
html << el;
if(IsNull(link) && psz.cx * psz.cy) {
if(IsNull(link) && psz.cx * psz.cy != 0) {
PNGEncoder png;
png.SaveFile(AppendFileName(outdir, lname), object.ToImage(psz));
}