Skip to content

Commit

Permalink
Drop default 2d max error even further (0.3 now)
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Dec 9, 2020
1 parent 3930790 commit 767d8a3
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgspointcloudrenderer.cpp
Expand Up @@ -162,7 +162,7 @@ void QgsPointCloudRenderer::restoreCommonProperties( const QDomElement &element,
mPointSizeUnit = QgsUnitTypes::decodeRenderUnit( element.attribute( QStringLiteral( "pointSizeUnit" ), QStringLiteral( "MM" ) ) );
mPointSizeMapUnitScale = QgsSymbolLayerUtils::decodeMapUnitScale( element.attribute( QStringLiteral( "pointSizeMapUnitScale" ), QString() ) );

mMaximumScreenError = element.attribute( QStringLiteral( "maximumScreenError" ), QStringLiteral( "0.4" ) ).toDouble();
mMaximumScreenError = element.attribute( QStringLiteral( "maximumScreenError" ), QStringLiteral( "0.3" ) ).toDouble();
mMaximumScreenErrorUnit = QgsUnitTypes::decodeRenderUnit( element.attribute( QStringLiteral( "maximumScreenErrorUnit" ), QStringLiteral( "MM" ) ) );
mPointSymbol = static_cast< PointSymbol >( element.attribute( QStringLiteral( "pointSymbol" ), QStringLiteral( "0" ) ).toInt() );
}
Expand Down
2 changes: 1 addition & 1 deletion src/core/pointcloud/qgspointcloudrenderer.h
Expand Up @@ -511,7 +511,7 @@ class CORE_EXPORT QgsPointCloudRenderer
QThread *mThread = nullptr;
#endif

double mMaximumScreenError = 0.4;
double mMaximumScreenError = 0.3;
QgsUnitTypes::RenderUnit mMaximumScreenErrorUnit = QgsUnitTypes::RenderMillimeters;

double mPointSize = 1;
Expand Down
Expand Up @@ -101,7 +101,7 @@ QgsPointCloudRendererPropertiesWidget::QgsPointCloudRendererPropertiesWidget( Qg

mMaxErrorUnitWidget->setUnits( QgsUnitTypes::RenderUnitList() << QgsUnitTypes::RenderMillimeters << QgsUnitTypes::RenderMetersInMapUnits << QgsUnitTypes::RenderMapUnits << QgsUnitTypes::RenderPixels
<< QgsUnitTypes::RenderPoints << QgsUnitTypes::RenderInches );
mMaxErrorSpinBox->setClearValue( 0.4 );
mMaxErrorSpinBox->setClearValue( 0.3 );

connect( mMaxErrorSpinBox, qgis::overload<double>::of( &QgsDoubleSpinBox::valueChanged ), this, &QgsPointCloudRendererPropertiesWidget::emitWidgetChanged );
connect( mMaxErrorUnitWidget, &QgsUnitSelectionWidget::changed, this, &QgsPointCloudRendererPropertiesWidget::emitWidgetChanged );
Expand Down
2 changes: 1 addition & 1 deletion src/ui/pointcloud/qgspointcloudrendererpropsdialogbase.ui
Expand Up @@ -192,7 +192,7 @@
<double>99999999999.000000000000000</double>
</property>
<property name="value">
<double>0.400000000000000</double>
<double>0.300000000000000</double>
</property>
</widget>
</item>
Expand Down

0 comments on commit 767d8a3

Please sign in to comment.