Fix uninitalized variable that was introduced by an extra scope added in r17654.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17677 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2008-10-31 10:28:40 +00:00
parent eda7dccb73
commit a9a95bb9d4

View File

@ -1280,10 +1280,10 @@ gnc_split_register_handle_exchange (SplitRegister *reg, gboolean force_dialog)
if (!expanded && osplit &&
gnc_split_register_split_needs_amount (reg, split) &&
gnc_split_register_split_needs_amount (reg, osplit)) {
message = _("You need to expand the transaction in order to modify its "
"exchange rates.");
if (force_dialog)
{
message = _("You need to expand the transaction in order to modify its "
"exchange rates.");
gnc_error_dialog (gnc_split_register_get_parent (reg), "%s", message);
}
LEAVE("%s", message);