From dd8fa975bf51dd18120369d0ef2d8f1781e04d93 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid Date: Sat, 2 Jun 2007 09:18:11 +0000 Subject: correct form of patch 11102 --- utils/HtmlFonts.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'utils') diff --git a/utils/HtmlFonts.cc b/utils/HtmlFonts.cc index 479c8229..347319bd 100644 --- a/utils/HtmlFonts.cc +++ b/utils/HtmlFonts.cc @@ -36,7 +36,10 @@ HtmlFontColor::HtmlFontColor(GfxRGB rgb){ r=static_cast(rgb.r/65535.0*255.0); g=static_cast(rgb.g/65535.0*255.0); b=static_cast(rgb.b/65535.0*255.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;} + if (!(Ok(r)&&Ok(b)&&Ok(g))) { + if (!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{ -- cgit v1.2.3