mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-26 00:02:08 -05:00
dxf export: avoid symbology scale 0 (fixes #14138)
(cherry picked from commit 0a07fee15297e18a73b63f194f5aeecffd76800c)
This commit is contained in:
parent
54fb32d0f5
commit
72cbff918f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user