Skip to content

Commit

Permalink
Consider alpha value for annotation rectangle in QGIS server
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Nov 27, 2012
1 parent dbd849f commit 4a44daa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mapserver/qgsprojectparser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,9 @@ void QgsProjectParser::drawAnnotationRectangle( QPainter* p, const QDomElement&
QColor backgroundColor( elem.attribute( "frameBackgroundColor", "#000000" ) );
backgroundColor.setAlpha( elem.attribute( "frameBackgroundColorAlpha", "255" ).toInt() );
p->setBrush( QBrush( backgroundColor ) );
QPen framePen( QColor( elem.attribute( "frameColor", "#000000" ) ) );
QColor frameColor( elem.attribute( "frameColor", "#000000" ) );
frameColor.setAlpha( elem.attribute( "frameColorAlpha", "255" ).toInt() );
QPen framePen( frameColor );
framePen.setWidth( elem.attribute( "frameBorderWidth", "1" ).toInt() );
p->setPen( framePen );

Expand Down

0 comments on commit 4a44daa

Please sign in to comment.