From c7844d95d273ada959d00210a6dec667585ccc58 Mon Sep 17 00:00:00 2001 From: Maxim Shafirov Date: Thu, 20 Jan 2005 18:12:54 +0300 Subject: [PATCH] Fix for keyword dropped by buggy inline method refactoring. --- source/com/intellij/psi/impl/source/xml/XmlTagImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java b/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java index 45c77a0da6ed..a5592792b8a0 100644 --- a/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java +++ b/source/com/intellij/psi/impl/source/xml/XmlTagImpl.java @@ -972,7 +972,12 @@ public class XmlTagImpl extends XmlElementImpl implements XmlTag/*, Modification Boolean beforeFlag, FileType fileType) { if(first instanceof XmlTagChild && fileType == StdFileTypes.XHTML){ - if (beforeFlag == null || !beforeFlag.booleanValue()) addChildren(first, last.getTreeNext(), anchor.getTreeNext()); addChildren(first, last.getTreeNext(), anchor); + if (beforeFlag == null || !beforeFlag.booleanValue()) { + addChildren(first, last.getTreeNext(), anchor.getTreeNext()); + } + else { + addChildren(first, last.getTreeNext(), anchor); + } return first; } return super.addInternal(first, last, anchor, beforeFlag);