Remove lingering freqspec usage. :(

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@16234 57a11ea4-9604-0410-9ed3-97b8803252fd
zzzoldreleases/2.2
Joshua Sled 19 years ago
parent 6ee471aee8
commit 67b0870f41

@ -203,16 +203,15 @@ gsidca_get_info(GncDenseCalModel *model, guint tag)
{
GncSxInstanceDenseCalAdapter *adapter = GNC_SX_INSTANCE_DENSE_CAL_ADAPTER(model);
// g_list_find(instances->sxes, {sx_to_tag, tag}).get_freq_spec().get_freq_str();
FreqSpec *spec;
GString *info;
GList *schedule;
gchar *schedule_str;
GncSxInstances *insts
= (GncSxInstances*)g_list_find_custom(adapter->instances->sx_instance_list, GUINT_TO_POINTER(tag), gsidca_find_sx_with_tag)->data;
if (insts == NULL)
return NULL;
spec = xaccSchedXactionGetFreqSpec(insts->sx);
info = g_string_sized_new(16);
xaccFreqSpecGetFreqStr(spec, info);
return g_string_free(info, FALSE);
schedule = gnc_sx_get_schedule(insts->sx);
schedule_str = recurrenceListToCompactString(schedule);
return schedule_str;
}
static gint

Loading…
Cancel
Save