From e2c89225988c8f6151d25c1084e7e7c5f1159e87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Kr=C3=BCger?= Date: Sat, 17 Mar 2012 14:43:32 +0100 Subject: [PATCH] Fixed formatting filter. --- .../Formatter/AstFormattingVisitor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSharpCode.NRefactory.CSharp/Formatter/AstFormattingVisitor.cs b/ICSharpCode.NRefactory.CSharp/Formatter/AstFormattingVisitor.cs index 0e884002ca..e2f410ad7d 100644 --- a/ICSharpCode.NRefactory.CSharp/Formatter/AstFormattingVisitor.cs +++ b/ICSharpCode.NRefactory.CSharp/Formatter/AstFormattingVisitor.cs @@ -129,12 +129,12 @@ namespace ICSharpCode.NRefactory.CSharp /// public void ApplyChanges() { - ApplyChanges(0, document.TextLength, document.Replace, (o, l, v) => document.GetText(o, l) != v); + ApplyChanges(0, document.TextLength, document.Replace, (o, l, v) => document.GetText(o, l) == v); } public void ApplyChanges(int startOffset, int length) { - ApplyChanges(startOffset, length, document.Replace, (o, l, v) => document.GetText(o, l) != v); + ApplyChanges(startOffset, length, document.Replace, (o, l, v) => document.GetText(o, l) == v); } ///