diff options
| author | Marcin Floryan <mfloryan@mm.waw.pl> | 2008-04-15 16:17:21 +0000 |
|---|---|---|
| committer | mfloryan <mfloryan@users.sourceforge.net> | 2008-04-15 16:17:21 +0000 |
| commit | a9178b177e16f6981499ae3f42e804a9a27fe121 (patch) | |
| tree | 06d350b808e96bbd3ea2f7ccb8c3d6e4396dbb01 /share | |
| parent | i18n: Added some comments for translators. (diff) | |
| download | inkscape-a9178b177e16f6981499ae3f42e804a9a27fe121.tar.gz inkscape-a9178b177e16f6981499ae3f42e804a9a27fe121.zip | |
Fixes Bug #216584 (Effects/Color/Replace color not accepting UC) and also implements max_length attribute for string parameters in inx files.
(bzr r5450)
Diffstat (limited to 'share')
| -rw-r--r-- | share/extensions/color_replace.inx | 4 | ||||
| -rw-r--r-- | share/extensions/color_replace.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/share/extensions/color_replace.inx b/share/extensions/color_replace.inx index c50b12811..3e6ebb91a 100644 --- a/share/extensions/color_replace.inx +++ b/share/extensions/color_replace.inx @@ -4,8 +4,8 @@ <dependency type="executable" location="extensions">coloreffect.py</dependency> <dependency type="executable" location="extensions">color_replace.py</dependency> <dependency type="executable" location="extensions">simplestyle.py</dependency> - <param name="from_color" type="string" _gui-text="Replace color (RRGGBB hex):">000000</param> - <param name="to_color" type="string" _gui-text="By color (RRGGBB hex):">000000</param> + <param name="from_color" type="string" max_length="6" _gui-text="Replace color (RRGGBB hex):">000000</param> + <param name="to_color" type="string" max_length="6" _gui-text="By color (RRGGBB hex):">000000</param> <effect> <object-type>all</object-type> <effects-menu> diff --git a/share/extensions/color_replace.py b/share/extensions/color_replace.py index 118a67d58..c52d75957 100644 --- a/share/extensions/color_replace.py +++ b/share/extensions/color_replace.py @@ -11,8 +11,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: |
