#499360: Patch by Daniel Harding to fix a crash when editing certain commodities.

Replace some DEBUGs by LEAVEs as well.
BP


git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16598 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2007-11-24 15:38:19 +00:00
parent f932123330
commit 54da00b692

View File

@ -377,7 +377,7 @@ gnc_quote_source_get_type (gnc_quote_source *source)
return SOURCE_SINGLE; return SOURCE_SINGLE;
} }
DEBUG("type is %d",source->type); LEAVE("type is %d",source->type);
return source->type; return source->type;
} }
@ -390,7 +390,7 @@ gnc_quote_source_get_index (gnc_quote_source *source)
return 0; return 0;
} }
DEBUG("index is %d", source->index); LEAVE("index is %d", source->index);
return source->index; return source->index;
} }
@ -403,7 +403,7 @@ gnc_quote_source_get_supported (gnc_quote_source *source)
return FALSE; return FALSE;
} }
DEBUG("%ssupported", source && source->supported ? "" : "not "); LEAVE("%ssupported", source && source->supported ? "" : "not ");
return source->supported; return source->supported;
} }
@ -969,7 +969,7 @@ gnc_commodity_set_quote_source(gnc_commodity *cm, gnc_quote_source *src)
void void
gnc_commodity_set_quote_tz(gnc_commodity *cm, const char *tz) gnc_commodity_set_quote_tz(gnc_commodity *cm, const char *tz)
{ {
ENTER ("(cm=%p, tz=%s)", cm, tz); ENTER ("(cm=%p, tz=%s)", cm, tz ? tz : "(null)");
if(!cm || tz == cm->quote_tz) return; if(!cm || tz == cm->quote_tz) return;