]> source.dussan.org Git - vaadin-framework.git/commitdiff
(#10186) Using the lighten function breaks up any later references to the parameter... 79/279/1
authorSebastian Nyholm <sebastian@vaadin.com>
Thu, 15 Nov 2012 15:12:42 +0000 (17:12 +0200)
committerSebastian Nyholm <sebastian@vaadin.com>
Thu, 15 Nov 2012 15:46:47 +0000 (17:46 +0200)
Change-Id: Ibdf66332dff186bcb791bbe48cb3d3ebcc87ede9

theme-compiler/src/com/vaadin/sass/tree/RuleNode.java

index 38c5b1cb4ee2585899bc788f0a1b03d7381dbdf0..217f6423a79421d39916268316f7d5484b524319 100644 (file)
@@ -98,7 +98,7 @@ public class RuleNode extends Node implements IVariableNode {
                             if (param.getValue().toString()
                                     .contains(node.getName())) {
 
-                                LexicalUnitImpl expr = node.getExpr();
+                                String value = node.getExpr().toString();
 
                                 LexicalUnitImpl prev = param
                                         .getPreviousLexicalUnit();
@@ -106,7 +106,9 @@ public class RuleNode extends Node implements IVariableNode {
                                         .getNextLexicalUnit();
 
                                 if (param.getLexicalUnitType() == LexicalUnitImpl.SCSS_VARIABLE) {
-                                    param.replaceValue(expr);
+                                    param.setStringValue(value);
+                                    param.setLexicalUnitType(node.getExpr()
+                                            .getLexicalUnitType());
                                     param.setPrevLexicalUnit(prev);
                                     param.setNextLexicalUnit(next);
                                 }