mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-17 00:09:36 -04:00
[ogr] Fix simple markers' stroke width of embedded styling
This commit is contained in:
parent
30870dfce9
commit
699fa93c6e
@ -1654,6 +1654,8 @@ std::unique_ptr<QgsSymbol> QgsOgrUtils::symbolFromStyleString( const QString &st
|
||||
|
||||
std::unique_ptr< QgsSimpleMarkerSymbolLayer > simpleMarker = std::make_unique< QgsSimpleMarkerSymbolLayer >( shape, symbolSize, -angle );
|
||||
simpleMarker->setSizeUnit( symbolSizeUnit );
|
||||
simpleMarker->setStrokeWidth( 1.0 );
|
||||
simpleMarker->setStrokeWidthUnit( Qgis::RenderUnit::Points );
|
||||
|
||||
if ( isFilled && QgsSimpleMarkerSymbolLayer::shapeIsFilled( shape ) )
|
||||
{
|
||||
|
@ -1517,6 +1517,8 @@ QgsMarkerSymbol *QgsMapInfoSymbolConverter::convertMarkerSymbol( int identifier,
|
||||
simpleMarker->setSizeUnit( sizeUnit );
|
||||
simpleMarker->setAngle( angle );
|
||||
simpleMarker->setVerticalAnchorPoint( vertAlign );
|
||||
simpleMarker->setStrokeWidth( 1.0 );
|
||||
simpleMarker->setStrokeWidthUnit( Qgis::RenderUnit::Points );
|
||||
|
||||
if ( isNull )
|
||||
{
|
||||
@ -1527,7 +1529,6 @@ QgsMarkerSymbol *QgsMapInfoSymbolConverter::convertMarkerSymbol( int identifier,
|
||||
{
|
||||
simpleMarker->setColor( color );
|
||||
simpleMarker->setStrokeColor( QColor( 0, 0, 0 ) );
|
||||
simpleMarker->setStrokeWidth( 0 );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 34 KiB After Width: | Height: | Size: 31 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.6 MiB After Width: | Height: | Size: 31 KiB |
Loading…
x
Reference in New Issue
Block a user