Author: blekot Date: Thu Aug 4 07:01:38 2005 GMT Module: SOURCES Tag: HEAD ---- Log message: - patch against colour handling
---- Files affected: SOURCES: bkchem-paper.patch (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SOURCES/bkchem-paper.patch diff -u /dev/null SOURCES/bkchem-paper.patch:1.1 --- /dev/null Thu Aug 4 09:01:38 2005 +++ SOURCES/bkchem-paper.patch Thu Aug 4 09:01:33 2005 @@ -0,0 +1,16 @@ +--- bkchem/paper.py.orig 2005-08-04 07:18:12.000000000 +0200 ++++ bkchem/paper.py 2005-08-04 07:20:09.000000000 +0200 +@@ -1558,8 +1558,11 @@ + + + def any_color_to_rgb_string( self, color): +- r, g, b = map( lambda x: (x < 256 and x) or (x >= 256 and x//256), self.winfo_rgb( color)) +- return "#%02x%02x%02x" % (r,g,b) ++ if not color: ++ return "none" ++ else: ++ r, g, b = map( lambda x: (x < 256 and x) or (x >= 256 and x//256), self.winfo_rgb( color)) ++ return "#%02x%02x%02x" % (r,g,b) + + + ================================================================ _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit