Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1032 closed defect (fixed)

QGIS crashes when I load a wrong symbol-style file

Reported by: hdus Owned by: timlinux
Priority: critical: causes crash or data corruption Milestone:
Component: Symbology Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: All
Platform Version: Awaiting user input: no

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.

Change History (4)

comment:1 by timlinux, 16 years ago

Status: newassigned

comment:2 by timlinux, 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

comment:3 by timlinux, 16 years ago

Resolution: fixed
Status: assignedclosed

Fixed with recent changes to SVN trunk.

comment:4 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.