Commit d5ca555
committed
fixed crash when trying to add features with invalid geometry
QgsMapToolAddFeature::canvasReleaseEvent wasn't checking if geos returned
a sane geometry. One simple way of triggering the crash is to click twice
on the same point and then complete the op by rightclicking. Of course this
is not a real polygon, so things went haywire after that.1 parent cd509e6 commit d5ca555
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
245 | 250 | | |
246 | 251 | | |
247 | 252 | | |
| |||
0 commit comments