Skip to content

Commit

Permalink
Merge pull request #2029 from jmcouffin/develop
Browse files Browse the repository at this point in the history
Color Splasher fix for accentuated words and Double in filters cat
  • Loading branch information
jmcouffin authored Dec 20, 2023
2 parents 7c804e1 + fe73540 commit 0ee7a38
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def Execute(self, uiapp):
parameter_id = DB.ElementId(sel_par._rl_par.Id.IntegerValue)
param_storage_type = sel_par._rl_par.StorageType
if param_storage_type == DB.StorageType.Double:
value = float(sub("[^0-9|.]", "", item._value))
value = float(item._value)
if version > 2021:
value_to_internal = DB.UnitUtils.ConvertToInternalUnits(
value, sel_par._rl_par.GetUnitTypeId()
Expand Down Expand Up @@ -587,7 +587,7 @@ class ValuesInfo:
def __init__(self, para, val, id, n1, n2, n3):
self._par = para
self._value = val
self._name = strip_accents(para.Definition.Name)
self._name = para.Definition.Name
self._eleId = List[DB.ElementId]()
self._eleId.Add(id)
self._n1 = n1
Expand All @@ -601,12 +601,12 @@ def __init__(self, type, para):
self._type = type
self._rl_par = para
self._par = para.Definition
self._name = strip_accents(para.Definition.Name)
self._name = para.Definition.Name


class CategInfo:
def __init__(self, cat, param):
self._name = strip_accents(cat.Name)
self._name = cat.Name
self._cat = cat
self._intId = cat.Id.IntegerValue
self._par = param
Expand Down

0 comments on commit 0ee7a38

Please sign in to comment.