Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raster Image Fill breaks @symbol_color variable for stroke color #47723

Closed
2 tasks done
baswein opened this issue Mar 10, 2022 · 0 comments · Fixed by #47834
Closed
2 tasks done

Raster Image Fill breaks @symbol_color variable for stroke color #47723

baswein opened this issue Mar 10, 2022 · 0 comments · Fixed by #47834
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers

Comments

@baswein
Copy link
Contributor

baswein commented Mar 10, 2022

What is the bug or the crash?

If you have a Raster Image Fill or an Outline:Raster Line at the bottom of your layer styling stack it makes the @symbol_color variable applied to the stroke in other layers no longer function. See GIF-
Raster-symbol-color-1

It seems that the symbol_color variable comes from the color of the bottom most symbol layer. Because the Raster layer does not have a color it makes the variable invalid and the color falls back to what is in the stroke field.

A gradient fill layer set to color ramp also doesn't have a color but the symbol_color defaults to the color set in the Overarching Symbol Color field. This seems like the correct behavior.

The current work around is easy: Add a Simple fill layer below the Raster Fill layer. This can even have the Enable Symbol Layer unchecked and still work as the symbol_color.

Thanks- QGIS Rocks!

Steps to reproduce the issue

On a ploygon layer add Simple Fill and a Raster Image Fill Layers to your symbol.
In the Simple Fill settings set the data defined override on the stroke to @symbol_color.
Move the raster image fill to the bottom.
Observe that the stroke on the Simple Fill is no longer the symbol color.

Versions

<style type="text/css"> p, li { white-space: pre-wrap; } </style>
QGIS version 3.24.0-Tisler QGIS code revision 6b44a42
Qt version 5.15.2
Python version 3.9.5
GDAL/OGR version 3.4.1
PROJ version 8.2.1
EPSG Registry database version v10.041 (2021-12-03)
GEOS version 3.10.2-CAPI-1.16.0
SQLite version 3.37.2
PDAL version 2.3.0
PostgreSQL client version unknown
SpatiaLite version 5.0.1
QWT version 6.1.3
QScintilla2 version 2.11.5
OS version Windows 10 Version 2009
       
Active Python plugins
db_manager 0.1.20
grassprovider 2.12.99
MetaSearch 0.3.6
processing 2.12.99
sagaprovider 2.12.99
QGIS version 3.24.0-Tisler QGIS code revision [6b44a42](https://github.com/qgis/QGIS/commit/6b44a420) Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.4.1 PROJ version 8.2.1 EPSG Registry database version v10.041 (2021-12-03) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.37.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.3 QScintilla2 version 2.11.5 OS version Windows 10 Version 2009

Active Python plugins
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
sagaprovider
2.12.99

Supported QGIS version

  • I'm running a supported QGIS version according to the roadmap.

New profile

  • I tried with a new QGIS profile

Additional context

No response

@baswein baswein added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Mar 10, 2022
@gioman gioman added the Symbology Related to vector layer symbology or renderers label Mar 10, 2022
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Mar 16, 2022
nyalldawson added a commit that referenced this issue Mar 21, 2022
qgis-bot pushed a commit that referenced this issue Mar 21, 2022
nyalldawson added a commit that referenced this issue Mar 22, 2022
nyalldawson added a commit to nyalldawson/QGIS that referenced this issue Mar 23, 2022
benoitdm-oslandia pushed a commit to benoitdm-oslandia/QGIS that referenced this issue Mar 28, 2022
nyalldawson added a commit that referenced this issue Apr 4, 2022
nyalldawson added a commit that referenced this issue Apr 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Symbology Related to vector layer symbology or renderers
Projects
None yet
2 participants