commit | a656b4e0c524ccc4d5ad2fbd6ae2e169638ed9c2 | [log] [tgz] |
---|---|---|
author | nsandonato <nsandonato> | Fri Jul 17 14:56:27 2009 +0000 |
committer | nsandonato <nsandonato> | Fri Jul 17 14:56:27 2009 +0000 |
tree | fc7474bebaa605231f1fd5194b482a395419b950 | |
parent | ffc5cf5a945359bc4af9c998f8305e8ed36efb8d [diff] |
[282218] Could not open the editor: Argument not valid
diff --git a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java index 49272c6..dde1a3b 100644 --- a/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java +++ b/bundles/org.eclipse.wst.css.ui/src/org/eclipse/wst/css/ui/internal/style/LineStyleProviderForEmbeddedCSS.java
@@ -71,6 +71,8 @@ /* The token may not span the total length of the region */ if (end < regionEnd) styleLength = end - regionStart; + else /* Bugzilla 282218 */ + styleLength = regionEnd - regionStart; addStyleRange(holdResults, getAttributeFor(token.kind), regionStart, styleLength); } start += token.length;