commit | fac2f43f610f053efc17d0a4f876424c0f692b8c | [log] [tgz] |
---|---|---|
author | nsandonato <nsandonato> | Tue Sep 01 13:28:38 2009 +0000 |
committer | nsandonato <nsandonato> | Tue Sep 01 13:28:38 2009 +0000 |
tree | daee1eea6995c1041a98ef9440630d3c89a226b9 | |
parent | 95924237d293d3698700341b8420c77797ffb0d5 [diff] |
[287889] Stackoverflow when invoking content assist
diff --git a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/document/CSSModelParser.java b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/document/CSSModelParser.java index 56e07e3..4a5d6a1 100644 --- a/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/document/CSSModelParser.java +++ b/bundles/org.eclipse.wst.css.core/src/org/eclipse/wst/css/core/internal/document/CSSModelParser.java
@@ -1170,7 +1170,7 @@ ICSSNode next = null; if (targetNode.hasChildNodes()) { for (ICSSNode child = targetNode.getFirstChild(); child != null; child = child.getNextSibling()) { - if (child instanceof CSSStructuredDocumentRegionContainer && cursorPos <= ((CSSStructuredDocumentRegionContainer) child).getStartOffset()) { + if (child instanceof CSSStructuredDocumentRegionContainer && cursorPos < ((CSSStructuredDocumentRegionContainer) child).getStartOffset()) { next = child; break; }