Commit dc80e06b authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow

Fix histogram tool for the case of no labels. [#795475]

2018-04-24  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* analysis-histogram.c (analysis_tool_histogram_engine_run): shorten the source only
	in the presence of labels
parent 555fa17f
Gnumeric 1.12.40
Andreas:
* Fix histogram tool for the case of no labels. [#795475]
Dean McCarron:
* Introspection fixes.
......
2018-04-24 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* analysis-histogram.c (analysis_tool_histogram_engine_run): shorten the source only
in the presence of labels
2018-03-13 Morten Welinder <terra@gnome.org>
* Release 1.12.39
......
......@@ -197,14 +197,15 @@ analysis_tool_histogram_engine_run (data_analysis_output_t *dao,
GnmExpr const *expr_min;
GnmExpr const *expr_max;
switch (info->base.group_by) {
case GROUPED_BY_ROW:
val->v_range.cell.a.col++;
break;
default:
val->v_range.cell.a.row++;
break;
}
if (info->base.labels)
switch (info->base.group_by) {
case GROUPED_BY_ROW:
val->v_range.cell.a.col++;
break;
default:
val->v_range.cell.a.row++;
break;
}
if (info->min_given)
dao_set_cell_float (dao, to_col, i_start, info->min);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment