Skip to content
Permalink
Browse files

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

  • Loading branch information
jef-n committed Aug 18, 2016
1 parent 127fb68 commit 0a07fee15297e18a73b63f194f5aeecffd76800c
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 0a07fee

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