gnucash maint: Fix compiler warning about misleading indentation

Geert Janssens gjanssens at code.gnucash.org
Wed Nov 30 10:31:31 EST 2016


Updated	 via  https://github.com/Gnucash/gnucash/commit/c5198be9 (commit)
	from  https://github.com/Gnucash/gnucash/commit/e38fd5b5 (commit)



commit c5198be90cf7c1a4141f7463a67218201e7cd429
Author: Geert Janssens <janssens-geert at telenet.be>
Date:   Wed Nov 30 16:30:53 2016 +0100

    Fix compiler warning about misleading indentation

diff --git a/src/gnome/gnc-split-reg.c b/src/gnome/gnc-split-reg.c
index a336213..a96f4e1 100644
--- a/src/gnome/gnc-split-reg.c
+++ b/src/gnome/gnc-split-reg.c
@@ -1042,24 +1042,24 @@ gsr_default_associate_handler_file( GNCSplitReg *gsr, gpointer data )
     if (is_trans_readonly_and_warn(trans))
         return;
 
-	dialog = gtk_file_chooser_dialog_new ("Associate File with Transaction",
+    dialog = gtk_file_chooser_dialog_new ("Associate File with Transaction",
                                      GTK_WINDOW(gsr->window),
                                      GTK_FILE_CHOOSER_ACTION_OPEN,
                                      GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
                                      GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                                      NULL);
 
-	gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER(dialog), 0);
-	if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
- 	{
-		char *uri;
+    gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER(dialog), 0);
+    if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_ACCEPT)
+    {
+        char *uri;
 
-	    uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (dialog));
+        uri = gtk_file_chooser_get_uri (GTK_FILE_CHOOSER (dialog));
         DEBUG("File URI: %s\n", uri);
-	    xaccTransSetAssociation(trans, uri);
+        xaccTransSetAssociation(trans, uri);
     }
 
-	gtk_widget_destroy (dialog);
+    gtk_widget_destroy (dialog);
 
 }
 



Summary of changes:
 src/gnome/gnc-split-reg.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)



More information about the gnucash-changes mailing list