Skip to content

Commit

Permalink
[41_2] Fix ps_load from ramdisc
Browse files Browse the repository at this point in the history
  • Loading branch information
da-liii committed Oct 7, 2023
1 parent bc0b50a commit ec82a32
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/System/Files/image_files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -181,12 +181,14 @@ ps_load (url image, bool conv) {
#endif

string s = "", suf= suffix (image);
if (suf == "ps" || suf == "eps")
load_string (image, s, false);
else
if (suf == "ps" || suf == "eps") {
load_string (name, s, false);
} else {
if (conv) s= image_to_psdoc (image); // call converters, then load resulting ps

if (s == "") load_string ("$TEXMACS_PATH/misc/pixmaps/unknown.png", s, true);
}

if (is_empty (s))
load_string ("$TEXMACS_PATH/misc/pixmaps/unknown.png", s, true);
return s;
}

Expand Down

0 comments on commit ec82a32

Please sign in to comment.