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

(cherry picked from commit 0a07fee15297e18a73b63f194f5aeecffd76800c)
This commit is contained in:
Juergen E. Fischer 2016-08-18 18:17:37 +02:00
parent 54fb32d0f5
commit 72cbff918f

View File

@ -528,11 +528,13 @@ QList< QPair<QgsVectorLayer *, int> > QgsDxfExportDialog::layers() const
double QgsDxfExportDialog::symbologyScale() const
{
double scale = 1 / mScaleWidget->scale();
if ( qgsDoubleNear( scale, 0.0 ) )
{
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;
}