diff --git a/src/app/qgsdxfexportdialog.cpp b/src/app/qgsdxfexportdialog.cpp index e6a32d239f7..8f1152d3b9f 100644 --- a/src/app/qgsdxfexportdialog.cpp +++ b/src/app/qgsdxfexportdialog.cpp @@ -528,11 +528,13 @@ QList< QPair > 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; }