diff options
Diffstat (limited to 'graphics/passepartout/files/patch-src::ps::pdf.cc')
-rw-r--r-- | graphics/passepartout/files/patch-src::ps::pdf.cc | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/graphics/passepartout/files/patch-src::ps::pdf.cc b/graphics/passepartout/files/patch-src::ps::pdf.cc new file mode 100644 index 000000000..165de6273 --- /dev/null +++ b/graphics/passepartout/files/patch-src::ps::pdf.cc @@ -0,0 +1,16 @@ +--- src/ps/pdf.cc.orig Wed Aug 18 23:42:10 2004 ++++ src/ps/pdf.cc Wed Aug 18 23:44:28 2004 +@@ -199,10 +199,10 @@ + bytecount write(std::ostream *out, bool binary=true, bytecount offset=0) + { + Part::write(out, binary, offset); +- std::string str(str()); ++ const std::string& s(str()); + if(out) +- (*out) << str; +- return offset+str.length(); ++ (*out) << s; ++ return offset+s.length(); + } + + protected: |