Skip to content
Permalink
Browse files

fix Martin Dobias review points

  • Loading branch information
PeterPetrik committed Sep 5, 2018
1 parent 55c7233 commit 20a5bce9a422281a039ddaaf1663699d69896e78
Showing with 6 additions and 3 deletions.
  1. +5 −2 src/app/mesh/qgsmeshrenderervectorsettingswidget.cpp
  2. +1 −1 src/core/mesh/qgsmeshvectorrenderer.cpp
@@ -19,8 +19,6 @@
#include "qgsmeshlayer.h"
#include "qgsmessagelog.h"

#include <QIntValidator>

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

@@ -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() );

@@ -310,7 +310,7 @@ void QgsMeshVectorRenderer::drawVectorDataOnGrid()
val.setY(
QgsMeshLayerUtils::interpolateFromFacesData(
p1, p2, p3,
mDatasetValuesX[nativeFaceIndex],
mDatasetValuesY[nativeFaceIndex],
p
)
);

0 comments on commit 20a5bce

Please sign in to comment.
You can’t perform that action at this time.