Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
pal: fixed scale-based labeling. Removed one more conversion of label…
… distance.

git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11024 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jul 4, 2009
1 parent 2429be4 commit a557c23
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/pal/pal.cpp
Expand Up @@ -255,7 +255,7 @@ namespace pal


// feature has to be labeled ?
if ( context->layer->toLabel )
if ( context->layer->toLabel && context->layer->isScaleValid( context->scale ) )
{
// is the feature well defined ? // TODO Check epsilon
if ( ft_ptr->label_x > 0.0000001 && ft_ptr->label_y > 0.0000001 )
Expand Down Expand Up @@ -479,10 +479,11 @@ namespace pal

double dist;

double distlabel = unit_convert( double( lp->feature->distlabel ),
double distlabel = lp->feature->distlabel;
/*unit_convert( double( lp->feature->distlabel ),
pal::PIXEL,
pal->map_unit,
pal->dpi, scale, 1 );
pal->dpi, scale, 1 );*/



Expand Down

0 comments on commit a557c23

Please sign in to comment.