summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAlbert Astals Cid <aacid@kde.org>2007-06-02 09:18:11 +0000
committerAlbert Astals Cid <aacid@kde.org>2007-06-02 09:18:11 +0000
commitdd8fa975bf51dd18120369d0ef2d8f1781e04d93 (patch)
tree6faf710afbeb7d1e1922c5b3e537952a32f40883 /utils
parentcdf70857ece0748f13b11c923ccf9626094555b4 (diff)
correct form of patch 11102
Diffstat (limited to 'utils')
-rw-r--r--utils/HtmlFonts.cc5
1 files changed, 4 insertions, 1 deletions
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<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)) && !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{