vertex placement: fix infinite loop

This commit is contained in:
Jiri Drbalek 2015-05-28 15:06:56 +00:00
parent b0759e8ade
commit 5ea57b62de

View file

@ -59,7 +59,7 @@ struct apply_vertex_placement
{ {
double label_x, label_y, z = 0; double label_x, label_y, z = 0;
va.rewind(0); va.rewind(0);
for (auto cmd = va.vertex(&label_x, &label_y); cmd != SEG_END;) for (unsigned cmd; (cmd = va.vertex(&label_x, &label_y)) != SEG_END; )
{ {
if (cmd != SEG_CLOSE) if (cmd != SEG_CLOSE)
{ {