Skip to content

Commit

Permalink
change error default to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
NEDJIMAbelgacem authored and wonder-sk committed Dec 7, 2020
1 parent cef12d9 commit b45eb5c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/3d/qgspointcloudlayer3drenderer.cpp
Expand Up @@ -132,7 +132,7 @@ void QgsPointCloudLayer3DRenderer::readXml( const QDomElement &elem, const QgsRe
QDomElement elemSymbol = elem.firstChildElement( QStringLiteral( "symbol" ) );

const QString symbolType = elemSymbol.attribute( QStringLiteral( "type" ) );
mMaximumScreenError = elem.attribute( QStringLiteral( "max-screen-error" ), QStringLiteral( "5.0" ) ).toDouble();
mMaximumScreenError = elem.attribute( QStringLiteral( "max-screen-error" ), QStringLiteral( "1.0" ) ).toDouble();

if ( symbolType == QLatin1String( "single-color" ) )
mSymbol.reset( new QgsSingleColorPointCloud3DSymbol );
Expand Down
2 changes: 1 addition & 1 deletion src/app/3d/qgspointcloud3dsymbolwidget.h
Expand Up @@ -67,7 +67,7 @@ class QgsPointCloud3DSymbolWidget : public QWidget, private Ui::QgsPointCloud3DS
QgsPointCloudLayer *mLayer = nullptr;

bool mBlockMinMaxChanged = false;
double mMaximumScreenError = 5.0f;
double mMaximumScreenError = 1.0f;

double mProviderMin = std::numeric_limits< double >::quiet_NaN();
double mProviderMax = std::numeric_limits< double >::quiet_NaN();
Expand Down
2 changes: 1 addition & 1 deletion src/ui/3d/qgspointcloud3dsymbolwidget.ui
Expand Up @@ -64,7 +64,7 @@
<double>100000.000000000000000</double>
</property>
<property name="value">
<double>5.000000000000000</double>
<double>1.000000000000000</double>
</property>
</widget>
</item>
Expand Down

0 comments on commit b45eb5c

Please sign in to comment.