Skip to content

Commit

Permalink
dxf export: avoid symbology scale 0 (fixes #14138)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0a07fee)
  • Loading branch information
jef-n committed Aug 18, 2016
1 parent 36f7faa commit 21325a2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/qgsdxfexportdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,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;
}

Expand Down

0 comments on commit 21325a2

Please sign in to comment.