Skip to content

Commit

Permalink
pal: fixed occasional upside-down characters when using curved labels
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11415 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Aug 17, 2009
1 parent 863e089 commit c509153
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/core/pal/labelposition.cpp
Expand Up @@ -89,8 +89,9 @@ namespace pal
x[3] = x1 + dx2;
y[3] = y1 + dy2;

// upside down ?
if ( this->alpha > M_PI / 2 && this->alpha <= 3*M_PI / 2 )
// upside down ? (curved labels are always correct)
if ( feature->getLayer()->getArrangement() != P_CURVED &&
this->alpha > M_PI / 2 && this->alpha <= 3*M_PI / 2 )
{
tx = x[0];
ty = y[0];
Expand Down

0 comments on commit c509153

Please sign in to comment.