Skip to content
Permalink
Browse files

dxf export: avoid symbology scale 0 (fixes #14138)

(cherry picked from commit 0a07fee)
  • Loading branch information
jef-n committed Aug 18, 2016
1 parent 54fb32d commit 72cbff918fdad51e3cdd5d97b52a790ddaca265f
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/qgsdxfexportdialog.cpp
@@ -528,11 +528,13 @@ QList< QPair<QgsVectorLayer *, int> > QgsDxfExportDialog::layers() const

double QgsDxfExportDialog::symbologyScale() const
{
double scale = 1 / mScaleWidget->scale();
if ( qgsDoubleNear( mScaleWidget->scale(), 0.0 ) )
return 1.0;

double scale = 1.0 / mScaleWidget->scale();
if ( qgsDoubleNear( scale, 0.0 ) )
{
return 1.0;
}

return scale;
}

0 comments on commit 72cbff9

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