summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-21 00:29:43 (GMT)
committerFriedrich W. H. Kossebau <kossebau@kde.org>2016-09-21 00:29:43 (GMT)
commitd596845458c7aa4afb490bce1644ca987e24d3e0 (patch)
tree130eae1d6158bd7b22491a693553b624688dc0f5
parent4c20d68f025a04eeea8614a6603a7ef267929092 (diff)
GeoPolygonGraphicsItem::configurePainter(): also consider brushStyle
-rw-r--r--src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp b/src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp
index 183190f..1620c11 100644
--- a/src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp
+++ b/src/lib/marble/geodata/graphicsitem/GeoPolygonGraphicsItem.cpp
@@ -607,7 +607,8 @@ QPen GeoPolygonGraphicsItem::configurePainter(GeoPainter *painter, const Viewpor
if ( isBuildingFrame ) {
painter->setBrush( style()->polyStyle().paintedColor().darker(150) );
}
- else if ( painter->brush().color() != style()->polyStyle().paintedColor() ) {
+ else if (painter->brush().color() != style()->polyStyle().paintedColor() ||
+ painter->brush().style() != style()->polyStyle().brushStyle()) {
QImage textureImage = style()->polyStyle().textureImage();
if (!textureImage.isNull()) {
GeoDataCoordinates coords = latLonAltBox().center();
@@ -631,7 +632,8 @@ QPen GeoPolygonGraphicsItem::configurePainter(GeoPainter *painter, const Viewpor
painter->setBrushOrigin(QPoint(x,y));
}
else {
- painter->setBrush( style()->polyStyle().paintedColor() );
+ painter->setBrush(QBrush(style()->polyStyle().paintedColor(),
+ style()->polyStyle().brushStyle()));
}
}
}