Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilos Kleint2010-12-21 09:45:34 -0500
committerMilos Kleint2010-12-21 09:46:55 -0500
commita26b7d98f5a4563be69e21972e25bf39819242c9 (patch)
tree18f77df81b090abd265f9a5af25473f38f986c2d
parent1eb060ac9f50672ea8787acd77f20e5caa3421d6 (diff)
downloadm2e-core-a26b7d98f5a4563be69e21972e25bf39819242c9.tar.gz
m2e-core-a26b7d98f5a4563be69e21972e25bf39819242c9.tar.xz
m2e-core-a26b7d98f5a4563be69e21972e25bf39819242c9.zip
fix pathUp method
-rw-r--r--org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java
index 280480d2..7a29e642 100644
--- a/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java
+++ b/org.eclipse.m2e.editor.xml/src/main/java/org/eclipse/m2e/editor/xml/internal/XmlUtils.java
@@ -276,7 +276,7 @@ public class XmlUtils {
public static String pathUp(Node node, int level) {
StringBuffer buf = new StringBuffer();
int current = level;
- while (node != null && level > 0) {
+ while (node != null && current > 0) {
if (node instanceof Element) {
if (buf.length() > 0) {
buf.insert(0, "/");

Back to the top