From 7ef8e6d4890a80637634b931dfea740f80d271a0 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 28 Feb 2018 00:32:41 +0000 Subject: [PATCH] Fix fall through in Account.cpp Found with -Wimplicit-fallthrough, but older versions of GCC don't support it. So it will take some effort to add it to the build config. I think it did not result in a reproducible bug. --- libgnucash/engine/Account.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libgnucash/engine/Account.cpp b/libgnucash/engine/Account.cpp index 312b04b5b4..e5325ab0d9 100644 --- a/libgnucash/engine/Account.cpp +++ b/libgnucash/engine/Account.cpp @@ -409,6 +409,7 @@ gnc_account_get_property (GObject *object, break; case PROP_SORT_REVERSED: g_value_set_boolean(value, xaccAccountGetSortReversed(account)); + break; case PROP_LOT_NEXT_ID: /* Pre-set the value in case the frame is empty */ g_value_set_int64 (value, 0); @@ -533,6 +534,7 @@ gnc_account_set_property (GObject *object, break; case PROP_SORT_REVERSED: xaccAccountSetSortReversed(account, g_value_get_boolean(value)); + break; case PROP_LOT_NEXT_ID: qof_instance_set_path_kvp (QOF_INSTANCE (account), value, {"lot-mgmt", "next-id"}); break;