Skip to content

Commit fa903dd

Browse files
committed
fix scale widget and dxf export
1 parent 5b38262 commit fa903dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/app/qgsdxfexportdialog.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ QList< QPair<QgsVectorLayer *, int> > QgsDxfExportDialog::layers() const
438438

439439
double QgsDxfExportDialog::symbologyScale() const
440440
{
441-
double scale = mScaleWidget->scale();
441+
double scale = 1/mScaleWidget->scale();
442442
if ( qgsDoubleNear( scale, 0.0 ) )
443443
{
444444
return 1.0;

src/gui/qgsscalewidget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ void QgsScaleWidget::setScaleFromCanvas()
6262
if ( !mCanvas )
6363
return;
6464

65-
setScale( mCanvas->scale() );
65+
setScale( 1/mCanvas->scale() );
6666
}
6767

6868

0 commit comments

Comments
 (0)