Commit 49730f61 authored by Marek Dvoroznak's avatar Marek Dvoroznak Committed by Mikael Magnusson

libs: npd: reset weights when # of control points is 0 and MLS mode is on

parent c2e1989c
......@@ -435,7 +435,11 @@ npd_compute_MLS_weights (NPDModel *model)
gfloat min, SED, MLS_weight;
gint i, j;
if (model->control_points->len == 0) return;
if (model->control_points->len == 0)
npd_reset_weights (hm);
for (i = 0; i < hm->num_of_overlapping_points; i++)
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