Skip to content
Permalink
Browse files

Fix build

  • Loading branch information
nyalldawson committed Jul 8, 2016
1 parent 02cc0cc commit 6f827138137afe3efebbf0f622aa209c08b4a95b
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/core/qgspallabeling.cpp
  2. +1 −1 src/core/qgsvectorlayerdiagramprovider.cpp
@@ -2898,7 +2898,7 @@ void QgsPalLayerSettings::registerFeature( QgsFeature& f, QgsRenderContext &cont
{
distance *= vectorScaleFactor;
}
double d = ptOne.distance( ptZero ) * distance;
double d = sqrt( ptOne.sqrDist( ptZero ) ) * distance;
( *labelFeature )->setDistLabel( d );
}

@@ -368,6 +368,6 @@ QgsLabelFeature* QgsVectorLayerDiagramProvider::registerDiagram( QgsFeature& fea

QgsPoint ptZero = mSettings.xform->toMapCoordinates( 0, 0 );
QgsPoint ptOne = mSettings.xform->toMapCoordinates( 1, 0 );
lf->setDistLabel( ptOne.distance( ptZero ) * mSettings.dist );
lf->setDistLabel( sqrt( ptOne.sqrDist( ptZero ) ) * mSettings.dist );
return lf;
}

0 comments on commit 6f82713

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