Skip to content

Commit 355deb5

Browse files
committedFeb 19, 2019
dwg import: fix exception (fixes #21177)
1 parent b8c727f commit 355deb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/app/dwg/qgsdwgimporter.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1606,6 +1606,12 @@ void QgsDwgImporter::addLWPolyline( const DRW_LWPolyline &data )
16061606
}
16071607
}
16081608

1609+
if ( p0 == p1 )
1610+
{
1611+
QgsDebugMsg( QStringLiteral( "i:%1,%2 empty segment skipped" ).arg( i0 ).arg( i1 ) );
1612+
continue;
1613+
}
1614+
16091615
if ( staWidth == endWidth )
16101616
{
16111617
if ( s.empty() )

0 commit comments

Comments
 (0)
Please sign in to comment.