Skip to content
Permalink
Browse files

dwg import: fix exception (fixes #21177)

  • Loading branch information
jef-n committed Feb 17, 2019
1 parent b8c727f commit 355deb5905861f263ae7bb03d2bc6fcea4ce5096
Showing with 6 additions and 0 deletions.
  1. +6 −0 src/app/dwg/qgsdwgimporter.cpp
@@ -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() )

0 comments on commit 355deb5

Please sign in to comment.
You can’t perform that action at this time.