Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 4066b91
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core/composer/qgscomposeritem.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit 4066b91

Please sign in to comment.