From fb6993ef1c3bb15bf75d8d0220b395e2f0b56f44 Mon Sep 17 00:00:00 2001 From: Mike Evans Date: Tue, 2 Oct 2012 21:44:56 +0000 Subject: [PATCH] Re-indentation of source code. Done using the following options: astyle --indent=spaces=4 --brackets=break --pad-oper --pad-header --suffix=noneR git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@22433 57a11ea4-9604-0410-9ed3-97b8803252fd --- .../customer_import/dialog-customer-import.c | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/plugins/customer_import/dialog-customer-import.c b/src/plugins/customer_import/dialog-customer-import.c index ef19be8e2e..2fad8901e1 100644 --- a/src/plugins/customer_import/dialog-customer-import.c +++ b/src/plugins/customer_import/dialog-customer-import.c @@ -347,27 +347,27 @@ gnc_customer_import_create_customers (GtkListStore *store, QofBook *book, guint { if (g_ascii_strcasecmp (type, "CUSTOMER") == 0) { - customer = gnc_search_customer_on_id (book, id); - if (!customer) - { - customer = gncCustomerCreate( book ); - gncCustomerSetCurrency( customer, gnc_default_currency() ); - (*n_customers_created)++; + customer = gnc_search_customer_on_id (book, id); + if (!customer) + { + customer = gncCustomerCreate( book ); + gncCustomerSetCurrency( customer, gnc_default_currency() ); + (*n_customers_created)++; } - else (*n_customers_updated)++; + else (*n_customers_updated)++; } else if (g_ascii_strcasecmp (type, "VENDOR") == 0) { - vendor = gnc_search_vendor_on_id (book, id); - if ( !vendor) - { - vendor = gncVendorCreate( book ); - gncVendorSetCurrency( vendor, gnc_default_currency() ); - (*n_customers_created)++; + vendor = gnc_search_vendor_on_id (book, id); + if ( !vendor) + { + vendor = gncVendorCreate( book ); + gncVendorSetCurrency( vendor, gnc_default_currency() ); + (*n_customers_created)++; } - else (*n_customers_updated)++; + else (*n_customers_updated)++; } - + if (g_ascii_strcasecmp (type, "CUSTOMER") == 0) { gncCustomerBeginEdit (customer);