]> git.pld-linux.org Git - packages/bkchem.git/commitdiff
- patch against colour handling
authorblekot <blekot@pld-linux.org>
Thu, 4 Aug 2005 07:01:33 +0000 (07:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    bkchem-paper.patch -> 1.1

bkchem-paper.patch [new file with mode: 0644]

diff --git a/bkchem-paper.patch b/bkchem-paper.patch
new file mode 100644 (file)
index 0000000..04a1b88
--- /dev/null
@@ -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)
+   
This page took 0.071363 seconds and 4 git commands to generate.