SOURCES: bkchem-paper.patch (NEW) - patch against colour handling

blekot blekot at pld-linux.org
Thu Aug 4 09:01:39 CEST 2005


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)
+   
+ 
+ 
================================================================



More information about the pld-cvs-commit mailing list