summaryrefslogtreecommitdiffstats
path: root/src/io/uristream.cpp
diff options
context:
space:
mode:
authortheAdib <theAdib@users.sourceforge.net>2009-08-02 15:04:57 +0000
committertheAdib <theAdib@users.sourceforge.net>2009-08-02 15:04:57 +0000
commit49e03ce9c287145a875165538ee90b7ccd575004 (patch)
treed8137e754ec0e7f47837f462ca6302ed1735d03b /src/io/uristream.cpp
parentSnap to a guide's origin too (resulting in a 2D constraint), instead of only ... (diff)
downloadinkscape-49e03ce9c287145a875165538ee90b7ccd575004.tar.gz
inkscape-49e03ce9c287145a875165538ee90b7ccd575004.zip
FIX 407115 test writing into file and throw exception upstream if needed
(bzr r8384)
Diffstat (limited to 'src/io/uristream.cpp')
-rw-r--r--src/io/uristream.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/io/uristream.cpp b/src/io/uristream.cpp
index f529c7f8b..05d7f020a 100644
--- a/src/io/uristream.cpp
+++ b/src/io/uristream.cpp
@@ -429,7 +429,10 @@ void UriOutputStream::put(int ch) throw(StreamException)
if (!outf)
return;
uch = (unsigned char)(ch & 0xff);
- fputc(uch, outf);
+ if (fputc(uch, outf) == EOF) {
+ Glib::ustring err = "ERROR writing to file ";
+ throw StreamException(err);
+ }
//fwrite(uch, 1, 1, outf);
break;