Skip to content

Commit 21325a2

Browse files
committed
dxf export: avoid symbology scale 0 (fixes #14138)
(cherry picked from commit 0a07fee)
1 parent 36f7faa commit 21325a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/app/qgsdxfexportdialog.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -526,11 +526,13 @@ QList< QPair<QgsVectorLayer *, int> > QgsDxfExportDialog::layers() const
526526

527527
double QgsDxfExportDialog::symbologyScale() const
528528
{
529-
double scale = 1 / mScaleWidget->scale();
529+
if ( qgsDoubleNear( mScaleWidget->scale(), 0.0 ) )
530+
return 1.0;
531+
532+
double scale = 1.0 / mScaleWidget->scale();
530533
if ( qgsDoubleNear( scale, 0.0 ) )
531-
{
532534
return 1.0;
533-
}
535+
534536
return scale;
535537
}
536538

0 commit comments

Comments
 (0)