You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using data defined overrides on an svg marker for the svg url as well as BOTH height and width of the marker, it changes to display a question mark. This cannot be reversed by clearing the height/width overrides. This only applies if the svg url field is also emptied. This issue is retained when saving the qgs file.
This was discovered when using the overrides to use the project folder as the source for the svg files in both QGIS and Qfield as well as setting different icon sizes for Desktop / Mobile using system variables. The issue was then found to still occur when not using any variables, so the example outlined has been simplified to not use variables.
Steps to reproduce the issue
Only tested so far on Debian 12 with QGIS 3.40.2
create blank project
create new point scratch layer
edit symbology to single symbol and set marker as SVG marker e.g. file /usr/share/qgis/svg/accommodation/accommodation_bed_and_breakfast.svg
cut the file url and paste (within single quotes) into the data defined override for the svg url
(at this stage both the marker and svg marker icons at the top of the symbology settings still show the correct symbol)
Now set a data defined override for BOTH width and height (with or without the "lock aspect ratio" set).
The "Marker" icon now shows a question mark and the "SVG Marker" shows the correct svg symbol.
Clearing the height/width data defined overrides does not reverse this.
If the project is saved and reloaded, the issue is retained and still will not cancel if the height/width overrides are cleared.
Versions
<style type="text/css">
p, li { white-space: pre-wrap; }
</style>
QGIS version
3.40.2-Bratislava
QGIS code revision
[a04cc6b](https://github.com/qgis/QGIS/commit/a04cc6bf127)
Libraries
Qt version
5.15.8
Python version
3.11.2
GDAL/OGR version
3.6.2
PROJ version
9.1.1
EPSG Registry database version
v10.076 (2022-08-31)
GEOS version
3.11.1-CAPI-1.17.1
SQLite version
3.40.1
PostgreSQL client version
15.10 (Debian 15.10-0+deb12u1)
SpatiaLite version
5.0.1
QWT version
6.1.4
QScintilla2 version
2.13.3
OS version
Debian GNU/Linux 12 (bookworm)
In the save qgs file, the following lines are present in the symbology definition that still retains the (inactive) height/width override after they were cleared :
What is the bug or the crash?
When using data defined overrides on an svg marker for the svg url as well as BOTH height and width of the marker, it changes to display a question mark. This cannot be reversed by clearing the height/width overrides. This only applies if the svg url field is also emptied. This issue is retained when saving the qgs file.
This was discovered when using the overrides to use the project folder as the source for the svg files in both QGIS and Qfield as well as setting different icon sizes for Desktop / Mobile using system variables. The issue was then found to still occur when not using any variables, so the example outlined has been simplified to not use variables.
Steps to reproduce the issue
Only tested so far on Debian 12 with QGIS 3.40.2
create blank project
create new point scratch layer
edit symbology to single symbol and set marker as SVG marker e.g. file /usr/share/qgis/svg/accommodation/accommodation_bed_and_breakfast.svg
cut the file url and paste (within single quotes) into the data defined override for the svg url
(at this stage both the marker and svg marker icons at the top of the symbology settings still show the correct symbol)
Now set a data defined override for BOTH width and height (with or without the "lock aspect ratio" set).
The "Marker" icon now shows a question mark and the "SVG Marker" shows the correct svg symbol.
Clearing the height/width data defined overrides does not reverse this.
If the project is saved and reloaded, the issue is retained and still will not cancel if the height/width overrides are cleared.
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Libraries
Qt version
5.15.8
Python version
3.11.2
GDAL/OGR version
3.6.2
PROJ version
9.1.1
EPSG Registry database version
v10.076 (2022-08-31)
GEOS version
3.11.1-CAPI-1.17.1
SQLite version
3.40.1
PostgreSQL client version
15.10 (Debian 15.10-0+deb12u1)
SpatiaLite version
5.0.1
QWT version
6.1.4
QScintilla2 version
2.13.3
OS version
Debian GNU/Linux 12 (bookworm)
Active Python plugins
ImportPhotos
3.0.7
SpreadsheetLayers
2.1.2
qgis_resource_sharing
1.2.0
LocatePoints
0.3.4
network_gt
1.0
qfieldsync
v4.12.2
raster_tracer
0.3.3
TomBio
3.4.4
MemoryLayerSaver
5.0.2
grassprovider
2.12.99
processing
2.12.99
db_manager
0.1.20
MetaSearch
0.3.6
Supported QGIS version
New profile
Additional context
In the save qgs file, the following lines are present in the symbology definition that still retains the (inactive) height/width override after they were cleared :
The text was updated successfully, but these errors were encountered: