mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-25 22:03:45 -06:00
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:
parent
0fa10592f7
commit
c25166d044
3 changed files with 7 additions and 5 deletions
|
|
@ -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));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue