Bug report #1032
QGIS crashes when I load a wrong symbol-style file
Status: | Closed | ||
---|---|---|---|
Priority: | Low | ||
Assignee: | Tim Sutton | ||
Category: | Symbology | ||
Affected QGIS version: | Regression?: | No | |
Operating System: | All | Easy fix?: | No |
Pull Request or Patch supplied: | Resolution: | fixed | |
Crashes QGIS or corrupts data: | Copied to github as #: | 11092 |
Description
When I try to load a symbol-style *.qml file which doesn't correspond whith the relevant layer => QGIS crashes.
I can reproduce the same behaviour when I create a symbol-style file based on a PostGIS layer.
1. Load a [[PostGIS]] Layer and create a symbol-style *.qml
2. Save this [[PostGIS]] layer as a shape-file.
3. Load the created symbol-style file to the shape-file
4. QGIS also crashes.
History
#1 Updated by Tim Sutton over 16 years ago
- Status changed from Open to In Progress
#2 Updated by Tim Sutton over 16 years ago
Hi
When applying a qml from one layer to another layer the result will be undefined. That said QGIS should never crash, but rather gracefully warn you of the situation. I will look at how we can address this.
Tim
#3 Updated by Tim Sutton about 16 years ago
- Resolution set to fixed
- Status changed from In Progress to Closed
Fixed with recent changes to SVN trunk.
#4 Updated by Anonymous over 15 years ago
Milestone Version 1.0.0 deleted