Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#854 closed defect (fixed)

Dont assert for unknown types in QgsVectorFileWriter

Reported by: timlinux Owned by: nobody
Priority: major: does not work as expected Milestone:
Component: Build/Install Version: Trunk
Keywords: Cc:
Must Fix for Release: No Platform: Debian
Platform Version: Awaiting user input: no

Description

From QGIS Users list:

2007/12/5, alexey <qgis at mail.ru>:

Hi

I have a problem with generating shape file in qgis. When at grass vector layer I press right mouse button and select "save as shapefile" qgis crashes and in terminal appears this text:


QgsGrass::vectors() qgis: /home/timlinux/dev/cpp/qgis-0.9.0/src/core/qgsvectorfilewriter.cpp:222: bo ol QgsVectorFileWriter::addFeature(QgsFeature&): Assertion `0 && "invalid varian t type"' failed. Aborted

I've addressed this issue in part with the attached patch in that it should fail more gracefully now with a suitable error message describing the nature of the problem and no longer performing an assert. Since we are in string freeze for 0.9.1, I will apply this after the release.

Attachments (1)

bug854fix.diff (1.8 KB ) - added by timlinux 16 years ago.

Download all attachments as: .zip

Change History (3)

by timlinux, 16 years ago

Attachment: bug854fix.diff added

comment:1 by timlinux, 16 years ago

Resolution: fixed
Status: newclosed

Patch applied in r7742.

comment:2 by (none), 15 years ago

Milestone: Version 0.9.2

Milestone Version 0.9.2 deleted

Note: See TracTickets for help on using tickets.