summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 95f1c87)
raw | patch | inline | side by side (parent: 95f1c87)
author | joncruz <joncruz@users.sourceforge.net> | |
Tue, 25 Sep 2007 03:07:34 +0000 (03:07 +0000) | ||
committer | joncruz <joncruz@users.sourceforge.net> | |
Tue, 25 Sep 2007 03:07:34 +0000 (03:07 +0000) |
src/color.cpp | patch | blob | history |
diff --git a/src/color.cpp b/src/color.cpp
index 6b2281f2697457dde841dd58e3dc5391f7df25aa..b16d9950fec134755ad423e89656ba60dd7f4333 100644 (file)
--- a/src/color.cpp
+++ b/src/color.cpp
sp_svg_write_color(tmp, sizeof(tmp), toRGBA32(0x0ff));
css << tmp;
- if ( !css.str().empty() ) {
- css << " ";
- }
- css << "icc-color(" << icc->colorProfile;
- for (vector<double>::const_iterator i(icc->colors.begin()),
- iEnd(icc->colors.end());
- i != iEnd; ++i) {
- css << ", " << *i;
+ if ( icc ) {
+ if ( !css.str().empty() ) {
+ css << " ";
+ }
+ css << "icc-color(" << icc->colorProfile;
+ for (vector<double>::const_iterator i(icc->colors.begin()),
+ iEnd(icc->colors.end());
+ i != iEnd; ++i) {
+ css << ", " << *i;
+ }
+ css << ')';
}
- css << ')';
return css.str();
}