Skip to content
Permalink
Browse files

pal: fixed occasional upside-down characters when using curved labels

git-svn-id: http://svn.osgeo.org/qgis/branches/symbology-ng-branch@11415 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Aug 17, 2009
1 parent 863e089 commit c509153c82e347f2966dc670cec47a4f6aafc6b7
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/core/pal/labelposition.cpp
@@ -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];

0 comments on commit c509153

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