Author: gcasa
Date: Thu Sep  4 01:16:41 2014
New Revision: 38058

URL: http://svn.gna.org/viewcvs/gnustep?rev=38058&view=rev
Log:
WinNSOpenPanel.m correct indentation.

Modified:
    plugins/themes/WinUXTheme/WinNSOpenPanel.m

Modified: plugins/themes/WinUXTheme/WinNSOpenPanel.m
URL: 
http://svn.gna.org/viewcvs/gnustep/plugins/themes/WinUXTheme/WinNSOpenPanel.m?rev=38058&r1=38057&r2=38058&view=diff
==============================================================================
--- plugins/themes/WinUXTheme/WinNSOpenPanel.m  (original)
+++ plugins/themes/WinUXTheme/WinNSOpenPanel.m  Thu Sep  4 01:16:41 2014
@@ -150,35 +150,35 @@
     {
       if ([type isEqualToString: @"All"])
        continue;
-
+      
       str = [dc typeFromFileExtension: type];
-         if (str != nil)
+      if (str != nil)
+       {
+         if (![names containsObject: [dc displayNameForType: str]])
            {
-      if (![names containsObject: [dc displayNameForType: str]])
-        {
-         NSMutableArray *data = [NSMutableArray array];
-
-         typeExts = [dc fileExtensionsFromType: str];
-
-         for (x = 0; x < [typeExts count]; x++)
-           {
-             if (![data containsObject: [typeExts objectAtIndex: x]])
+             NSMutableArray *data = [NSMutableArray array];
+             
+             typeExts = [dc fileExtensionsFromType: str];
+             
+             for (x = 0; x < [typeExts count]; x++)
                {
-                 [data addObject: [typeExts objectAtIndex: x]];
+                 if (![data containsObject: [typeExts objectAtIndex: x]])
+                   {
+                     [data addObject: [typeExts objectAtIndex: x]];
+                   }
                }
+             
+             [names addObject: [dc displayNameForType: str]];
+             [exts addObject: data];
            }
-
-          [names addObject: [dc displayNameForType: str]];
-          [exts addObject: data];
-        }
-           }
-         else
-           {
-             [names addObject: type];
-             [exts addObject: [NSArray arrayWithObject: type]];
-           }
-    }
-
+       }
+      else
+       {
+         [names addObject: type];
+         [exts addObject: [NSArray arrayWithObject: type]];
+       }
+    }
+  
   // Build the string, adding one entry for each type
   x = 0;
   en = [names objectEnumerator];
@@ -186,12 +186,12 @@
     { 
       [filterString appendFormat:@"%@ (*.%@)+*.%@+",
                     type,
-                    [[exts objectAtIndex: x] componentsJoinedByString: @"; 
*."],
-                    [[exts objectAtIndex: x] componentsJoinedByString: 
@";*."]];
-
+           [[exts objectAtIndex: x] componentsJoinedByString: @"; *."],
+           [[exts objectAtIndex: x] componentsJoinedByString: @";*."]];
+      
       x++;
     }
-
+  
   // Add the nulls...
   unichar *fs = (unichar *)[filterString cStringUsingEncoding: 
                                           NSUnicodeStringEncoding];
@@ -204,7 +204,7 @@
          fs[i] = '\0';
        }
     }
-
+  
   return fs;
 }
 


_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to