diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2000-12-01 05:58:44 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2000-12-01 05:58:44 +0000 |
commit | ee1b4beff5b30e60a658601c3317736f072925c2 (patch) | |
tree | 9cf7dcd05add0d84a2c180e29c48b837742c7f4e /graphics/kdegraphics4 | |
parent | ebc6eda7ad2ed5dc5578242b51581d39073cafa0 (diff) | |
download | ports-ee1b4beff5b30e60a658601c3317736f072925c2.tar.gz ports-ee1b4beff5b30e60a658601c3317736f072925c2.zip |
Notes
Diffstat (limited to 'graphics/kdegraphics4')
-rw-r--r-- | graphics/kdegraphics4/files/patch-kfax.cpp | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/graphics/kdegraphics4/files/patch-kfax.cpp b/graphics/kdegraphics4/files/patch-kfax.cpp new file mode 100644 index 000000000000..4bdb092f1459 --- /dev/null +++ b/graphics/kdegraphics4/files/patch-kfax.cpp @@ -0,0 +1,29 @@ +--- kfax/kfax.cpp.orig Fri Dec 1 13:48:29 2000 ++++ kfax/kfax.cpp Fri Dec 1 13:51:10 2000 +@@ -46,6 +46,7 @@ + #include <kmessagebox.h> + #include <kcmdlineargs.h> + #include <kio/netaccess.h> ++#include <ktempfile.h> + + #include "kfax.h" + #include "kfax.moc" +@@ -994,14 +995,12 @@ + if(defaultpage.expander == g31expand) + faxtype = 31; + ++ KTempFile tmpFile; ++ tmpFile.setAutoDelete(true); + +- QString tempfile; +- tempfile = tmpnam(NULL); ++ fax2tiffmain(pn->pathname,QFile::encodeName(tmpFile.name()),pn->lsbfirst,pn->vres?0:1,faxtype); + +- fax2tiffmain(pn->pathname,tempfile.ascii(),pn->lsbfirst,pn->vres?0:1,faxtype); +- fax2psmain(tempfile.ascii(),psfile,width,height,pi.scale); +- +- remove(tempfile.ascii()); ++ fax2psmain(QFile::encodeName(tmpFile.name()),psfile,width,height,pi.scale); + + } + |