Skip to content

Commit 4a44daa

Browse files
committed
Consider alpha value for annotation rectangle in QGIS server
1 parent dbd849f commit 4a44daa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mapserver/qgsprojectparser.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -2703,7 +2703,9 @@ void QgsProjectParser::drawAnnotationRectangle( QPainter* p, const QDomElement&
27032703
QColor backgroundColor( elem.attribute( "frameBackgroundColor", "#000000" ) );
27042704
backgroundColor.setAlpha( elem.attribute( "frameBackgroundColorAlpha", "255" ).toInt() );
27052705
p->setBrush( QBrush( backgroundColor ) );
2706-
QPen framePen( QColor( elem.attribute( "frameColor", "#000000" ) ) );
2706+
QColor frameColor( elem.attribute( "frameColor", "#000000" ) );
2707+
frameColor.setAlpha( elem.attribute( "frameColorAlpha", "255" ).toInt() );
2708+
QPen framePen( frameColor );
27072709
framePen.setWidth( elem.attribute( "frameBorderWidth", "1" ).toInt() );
27082710
p->setPen( framePen );
27092711

0 commit comments

Comments
 (0)