From 4342fe20996cd7c6d90f8581624e2f2faa6cffec Mon Sep 17 00:00:00 2001 From: Sergey Prigogin Date: Sun, 2 Jan 2011 22:55:39 +0000 Subject: [PATCH] Cosmetics. --- .../cdt/internal/ui/refactoring/utils/SelectionHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/utils/SelectionHelper.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/utils/SelectionHelper.java index 76451077267..1c8b3e0338c 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/utils/SelectionHelper.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/refactoring/utils/SelectionHelper.java @@ -70,7 +70,7 @@ public class SelectionHelper { Region exprPos = createExpressionPosition(expression); int selStart = textSelection.getOffset(); int selEnd = textSelection.getLength() + selStart; - return exprPos.getOffset()+exprPos.getLength() >= selStart && exprPos.getOffset() <= selEnd; + return exprPos.getOffset() + exprPos.getLength() >= selStart && exprPos.getOffset() <= selEnd; } public static boolean isExpressionWhollyInSelection(Region textSelection, IASTNode expression) {