Fixed issue #750 (#752)

This commit is contained in:
Matthias Köfferlein 2021-03-30 12:36:29 +02:00 committed by Matthias Koefferlein
parent 4bb959eb6d
commit e724dcdb45
2 changed files with 7 additions and 0 deletions

View File

@ -513,6 +513,7 @@ RS274XReader::do_read ()
if (m_polygon_mode) {
// D02 strokes close the polygon (and restart a new one)
if (m_polygon_points.size () >= 3) {
db::DPolygon poly;
poly.assign_hull (m_polygon_points.begin (), m_polygon_points.end ());
@ -520,6 +521,7 @@ RS274XReader::do_read ()
}
m_polygon_points.clear ();
m_polygon_points.push_back (db::DPoint (x, y));
}

View File

@ -297,6 +297,11 @@ TEST(26)
run_test (_this, "pos-neg");
}
TEST(27)
{
run_test (_this, "polygon-mode");
}
TEST(X2_1)
{
run_test (_this, "x2-1");