Bug 11179 fix indentation for blocks RCL_2_4
authordadubrow
Thu, 29 Apr 2010 11:30:21 -0500
branchRCL_2_4
changeset 140 6d6cf3bdff43
parent 139 3b27a90d6161
child 141 1c111b1b3a16
Bug 11179 fix indentation for blocks
cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java
--- a/cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java	Tue Apr 13 09:45:35 2010 -0500
+++ b/cdt/cdt_6_0_x/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/CIndenter.java	Thu Apr 29 11:30:21 2010 -0500
@@ -1277,6 +1277,7 @@
 				case Symbols.TokenWHILE:
 				case Symbols.TokenFOR:
 				case Symbols.TokenTRY:
+					fIndent += fPrefs.prefIndentBracesForBlocks ? 1 : 0;
 					return fPosition;
 
 				case Symbols.TokenCLASS: