Skip to content

Commit 0a07fee

Browse files
committedAug 18, 2016
dxf export: avoid symbology scale 0 (fixes #14138)
1 parent 127fb68 commit 0a07fee

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎src/app/qgsdxfexportdialog.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -528,11 +528,13 @@ QList< QPair<QgsVectorLayer *, int> > QgsDxfExportDialog::layers() const
528528

529529
double QgsDxfExportDialog::symbologyScale() const
530530
{
531-
double scale = 1 / mScaleWidget->scale();
531+
if ( qgsDoubleNear( mScaleWidget->scale(), 0.0 ) )
532+
return 1.0;
533+
534+
double scale = 1.0 / mScaleWidget->scale();
532535
if ( qgsDoubleNear( scale, 0.0 ) )
533-
{
534536
return 1.0;
535-
}
537+
536538
return scale;
537539
}
538540

0 commit comments

Comments
 (0)
Please sign in to comment.