Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix r14018 (reenable pal label reprojection)
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14068 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Aug 11, 2010
1 parent 7dafac1 commit c9902b7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/core/qgspallabeling.cpp
Expand Up @@ -44,6 +44,7 @@
#include <qgsvectordataprovider.h>
#include <qgsgeometry.h>
#include <qgsmaprenderer.h>
#include "qgslogger.h"


using namespace pal;
Expand Down Expand Up @@ -416,13 +417,14 @@ void QgsPalLayerSettings::registerFeature( QgsFeature& f, const QgsRenderContext
}

QgsGeometry* geom = f.geometry();

if ( ct ) // reproject the geometry if necessary
geom->transform( *ct );

GEOSGeometry* geos_geom = geom->asGeos();
if ( geos_geom == NULL )
return; // invalid geometry

if ( ct != NULL ) // reproject the geometry if necessary
geom->transform( *ct );

if ( !checkMinimumSizeMM( context, geom, minFeatureSize ) )
{
return;
Expand Down Expand Up @@ -858,9 +860,7 @@ void QgsPalLabeling::drawLabelCandidateRect( pal::LabelPosition* lp, QPainter* p
drawLabelCandidateRect( lp->getNextPart(), painter, xform );
}

#include "qgslogger.h"

void QgsPalLabeling::drawLabel( pal::LabelPosition* label, QPainter* painter, const QFont& f, const QColor& c, const QgsMapToPixel* xform, double bufferSize, \
void QgsPalLabeling::drawLabel( pal::LabelPosition* label, QPainter* painter, const QFont& f, const QColor& c, const QgsMapToPixel* xform, double bufferSize,
const QColor& bufferColor, bool drawBuffer )
{
QgsPoint outPt = xform->transform( label->getX(), label->getY() );
Expand Down

0 comments on commit c9902b7

Please sign in to comment.