Code

Translations. French translation minor update.
[inkscape.git] / share / extensions / color_replace.py
index 118a67d58912f1dbbdf994014992e7e00e09c328..edfd90a76d01eecdba5dd068ded8cdf8eedfcf15 100644 (file)
@@ -1,3 +1,4 @@
+#!/usr/bin/env python
 import coloreffect
 
 import inkex
@@ -11,8 +12,8 @@ class C(coloreffect.ColorEffect):
   def colmod(self,r,g,b):
     this_color = '%02x%02x%02x' % (r, g, b)
 
-    fr = self.options.from_color.strip('"').replace('#', '')
-    to = self.options.to_color.strip('"').replace('#', '')
+    fr = self.options.from_color.strip('"').replace('#', '').lower()
+    to = self.options.to_color.strip('"').replace('#', '').lower()
        
     #inkex.debug(this_color+"|"+fr+"|"+to)
     if this_color == fr: