Skip to content
Permalink
Browse files
remove always black text
this is unconsistant with the other drawText function and makes it impossble for a composer item to have a font color
  • Loading branch information
olivierdalang authored and mhugent committed Jan 22, 2013
1 parent 8912dd3 commit 4066b915923832c527ca41fcea46be55653bb1de
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/core/composer/qgscomposeritem.cpp
@@ -826,7 +826,6 @@ void QgsComposerItem::drawText( QPainter* p, double x, double y, const QString&

p->save();
p->setFont( textFont );
p->setPen( QColor( 0, 0, 0 ) ); //draw text always in black
double scaleFactor = 1.0 / FONT_WORKAROUND_SCALE;
p->scale( scaleFactor, scaleFactor );
p->drawText( QPointF( x * FONT_WORKAROUND_SCALE, y * FONT_WORKAROUND_SCALE ), text );

0 comments on commit 4066b91

Please sign in to comment.