From 5ea57b62de8bf4a87f09d960fd90dcf82b79201e Mon Sep 17 00:00:00 2001 From: Jiri Drbalek Date: Thu, 28 May 2015 15:06:56 +0000 Subject: [PATCH] vertex placement: fix infinite loop --- src/text/symbolizer_helpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/text/symbolizer_helpers.cpp b/src/text/symbolizer_helpers.cpp index 7b1559976..c7f0eb1a2 100644 --- a/src/text/symbolizer_helpers.cpp +++ b/src/text/symbolizer_helpers.cpp @@ -59,7 +59,7 @@ struct apply_vertex_placement { double label_x, label_y, z = 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) {