You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by yi...@apache.org on 2019/01/24 10:39:04 UTC

[royale-asjs] branch develop updated: Make sure attributes aren't initialized when they shouldn't be.

This is an automated email from the ASF dual-hosted git repository.

yishayw pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 198cd41  Make sure attributes aren't initialized when they shouldn't be.
198cd41 is described below

commit 198cd410b375a35e627ca7237dd6d104dd49e8d3
Author: DESKTOP-RH4S838\Yishay <yi...@hotmail.com>
AuthorDate: Thu Jan 24 12:38:14 2019 +0200

    Make sure attributes aren't initialized when they shouldn't be.
---
 .../royale/org/apache/royale/svg/CompositeFilterElement.as    | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/CompositeFilterElement.as b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/CompositeFilterElement.as
index 6a9cab9..657003b 100644
--- a/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/CompositeFilterElement.as
+++ b/frameworks/projects/Graphics/src/main/royale/org/apache/royale/svg/CompositeFilterElement.as
@@ -56,10 +56,13 @@ package org.apache.royale.svg
 			{
 				super.build();
 				filterElement.setAttribute("in2", in2);
-				filterElement.setAttribute("k1", k1);
-				filterElement.setAttribute("k2", k2);
-				filterElement.setAttribute("k3", k3);
-				filterElement.setAttribute("k4", k4);
+				if (operator == "arithmetic")
+				{
+					filterElement.setAttribute("k1", k1);
+					filterElement.setAttribute("k2", k2);
+					filterElement.setAttribute("k3", k3);
+					filterElement.setAttribute("k4", k4);
+				}
 				filterElement.setAttribute("operator", operator);
 			}
 		}