Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
dwg import: fix exception (fixes #21177)
  • Loading branch information
jef-n committed Feb 19, 2019
1 parent b8c727f commit 355deb5
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/app/dwg/qgsdwgimporter.cpp
Expand Up @@ -1606,6 +1606,12 @@ void QgsDwgImporter::addLWPolyline( const DRW_LWPolyline &data )
}
}

if ( p0 == p1 )
{
QgsDebugMsg( QStringLiteral( "i:%1,%2 empty segment skipped" ).arg( i0 ).arg( i1 ) );
continue;
}

if ( staWidth == endWidth )
{
if ( s.empty() )
Expand Down

0 comments on commit 355deb5

Please sign in to comment.