Skip to content

Commit

Permalink
fix Martin Dobias review points
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Sep 5, 2018
1 parent 55c7233 commit 20a5bce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/app/mesh/qgsmeshrenderervectorsettingswidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include "qgsmeshlayer.h"
#include "qgsmessagelog.h"

#include <QIntValidator>

QgsMeshRendererVectorSettingsWidget::QgsMeshRendererVectorSettingsWidget( QWidget *parent )
: QWidget( parent )

Expand Down Expand Up @@ -137,6 +135,11 @@ void QgsMeshRendererVectorSettingsWidget::syncToLayer( )
mHeadWidthLineEdit->setText( QString::number( settings.arrowHeadWidthRatio() * 100.0 ) );
mHeadLengthLineEdit->setText( QString::number( settings.arrowHeadLengthRatio() * 100.0 ) );

// user grid
mDisplayVectorsOnGridGroupBox->setChecked( settings.isOnUserDefinedGrid() );
mXSpacingSpinBox->setValue( settings.userGridCellWidth() );
mYSpacingSpinBox->setValue( settings.userGridCellHeight() );

// shaft length
mShaftLengthComboBox->setCurrentIndex( settings.shaftLengthMethod() );

Expand Down
2 changes: 1 addition & 1 deletion src/core/mesh/qgsmeshvectorrenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ void QgsMeshVectorRenderer::drawVectorDataOnGrid()
val.setY(
QgsMeshLayerUtils::interpolateFromFacesData(
p1, p2, p3,
mDatasetValuesX[nativeFaceIndex],
mDatasetValuesY[nativeFaceIndex],
p
)
);
Expand Down

0 comments on commit 20a5bce

Please sign in to comment.