From 333e112e375f74e0d812cc9c02f2d90e2a825b05 Mon Sep 17 00:00:00 2001 From: cacaodev Date: Sun, 15 May 2016 10:06:52 +0200 Subject: [PATCH] Fixed: CPPredicateEditor predicate when the template has a CPFloatAttributeType --- AppKit/CPRuleEditor/CPPredicateEditorRowTemplate.j | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/AppKit/CPRuleEditor/CPPredicateEditorRowTemplate.j b/AppKit/CPRuleEditor/CPPredicateEditorRowTemplate.j index 7ae1c3fc2..70768f15e 100644 --- a/AppKit/CPRuleEditor/CPPredicateEditorRowTemplate.j +++ b/AppKit/CPRuleEditor/CPPredicateEditorRowTemplate.j @@ -471,7 +471,7 @@ CPTransformableAttributeType = 1800; var value; if (attributeType >= CPInteger16AttributeType && attributeType <= CPFloatAttributeType) - value = [aView intValue]; + value = [aView floatValue]; else if (attributeType == CPBooleanAttributeType) value = [aView state]; else if (attributeType == CPDateAttributeType)