mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Make sure ENTER is balanced by LEAVE in gnc_commodity_set_quote_tz.
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20125 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
2f4e33a86f
commit
6181f334f3
@ -1348,13 +1348,17 @@ gnc_commodity_set_quote_tz(gnc_commodity *cm, const char *tz)
|
||||
{
|
||||
CommodityPrivate* priv;
|
||||
|
||||
ENTER ("(cm=%p, tz=%s)", cm, tz ? tz : "(null)");
|
||||
|
||||
if (!cm) return;
|
||||
|
||||
ENTER ("(cm=%p, tz=%s)", cm, tz ? tz : "(null)");
|
||||
|
||||
priv = GET_PRIVATE(cm);
|
||||
|
||||
if (tz == priv->quote_tz) return;
|
||||
if (tz == priv->quote_tz)
|
||||
{
|
||||
LEAVE("Already correct TZ");
|
||||
return;
|
||||
}
|
||||
|
||||
gnc_commodity_begin_edit(cm);
|
||||
CACHE_REMOVE (priv->quote_tz);
|
||||
|
Loading…
Reference in New Issue
Block a user