Skip to content
Permalink
Browse files

Fixed positioning of font markers with rotation (#2380).

Allow rotation up to 360 degrees in the settings widget.


git-svn-id: http://svn.osgeo.org/qgis/trunk@12808 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Jan 20, 2010
1 parent 4482bec commit d8be90e3e7878b2b3c09ca99d7887e70220f88d6
Showing with 8 additions and 6 deletions.
  1. +5 −6 src/core/symbology-ng/qgsmarkersymbollayerv2.cpp
  2. +3 −0 src/ui/symbollayer/widget_fontmarker.ui
@@ -524,14 +524,13 @@ void QgsFontMarkerSymbolLayerV2::renderPoint( const QPointF& point, QgsSymbolV2R
p->setPen( mColor );
p->setFont( mFont );

p->save();
p->translate(point);
if ( mAngle != 0 )
{
p->save();
p->rotate( mAngle );
}
p->drawText( point - mChrOffset, mChr );
if ( mAngle != 0 )
p->restore();

p->drawText(-mChrOffset, mChr );
p->restore();
}

QgsStringMap QgsFontMarkerSymbolLayerV2::properties() const
@@ -62,6 +62,9 @@
<property name="decimals">
<number>1</number>
</property>
<property name="maximum">
<double>360.000000000000000</double>
</property>
</widget>
</item>
<item row="2" column="1">

0 comments on commit d8be90e

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