#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)
Change History (3)
by , 15 years ago
Attachment: | bug854fix.diff added |
---|
comment:1 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Patch applied in r7742.