summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2007-05-30 17:50:00 +0000
committerAlbert Astals Cid <aacid@kde.org>2007-05-30 17:50:00 +0000
commitd540c04268047fdd125ad932ca05c7553a97c0fe (patch)
treed20016cc74b5abc7485e76cfb792825b964c7dac /utils
parentce414f2a36f4d97a3bddfd42baabdc1e34bf9321 (diff)
* utils/HtmlFonts.cc: Make pdftohtml not pollute stdout. Patch bypoppler-0.6.0.RC1
Nanning Buitenhuis <nanning@elvenkind.com> And some changes in glib/reference/tmpl
Diffstat (limited to 'utils')
-rw-r--r--utils/HtmlFonts.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/HtmlFonts.cc b/utils/HtmlFonts.cc
index e267c259..479c8229 100644
--- a/utils/HtmlFonts.cc
+++ b/utils/HtmlFonts.cc
@@ -36,7 +36,7 @@ HtmlFontColor::HtmlFontColor(GfxRGB rgb){
r=static_cast<int>(rgb.r/65535.0*255.0);
g=static_cast<int>(rgb.g/65535.0*255.0);
b=static_cast<int>(rgb.b/65535.0*255.0);
- if (!(Ok(r)&&Ok(b)&&Ok(g))) {printf("Error : Bad color %d %d %d\n", r, g, b);r=0;g=0;b=0;}
+ if (!(Ok(r)&&Ok(b)&&Ok(g)) && !globalParams->getErrQuiet()) {fprintf(stderr, "Error : Bad color (%d,%d,%d) reset to (0,0,0)\n", r, g, b);r=0;g=0;b=0;}
}
GooString *HtmlFontColor::convtoX(unsigned int xcol) const{