Code

fix device-color output
authorFelipe C. da S. Sanches <juca@members.fsf.org>
Sun, 6 Dec 2009 21:25:09 +0000 (19:25 -0200)
committerFelipe C. da S. Sanches <juca@members.fsf.org>
Sun, 6 Dec 2009 21:25:09 +0000 (19:25 -0200)
src/color.cpp

index abaab6310005d238ee2ce50528765303baa71ce3..07c15ff15d9cb8d3ab16bb6119420b56b0955e12 100644 (file)
@@ -245,7 +245,8 @@ std::string SPColor::toString() const
         for (vector<double>::const_iterator i(device->colors.begin()),
                  iEnd(device->colors.end());
              i != iEnd; ++i) {
-            css << ", " << *i;
+            if (i!=device->colors.begin()) css << ", ";
+            css << *i;
         }
         css << ')';
     }