Bug report #15122

Map canvas gets stuck after doing pan on a null geometry feature

Added by Tudor Bărăscu about 4 years ago. Updated about 4 years ago.

Status:Closed
Priority:Normal
Assignee:Matthias Kuhn
Category:Map Canvas
Affected QGIS version:master Regression?:No
Operating System:Debian Stretch Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23063

Description

When running the "Pan map to the selected rows" tool on a row that has NULL geometry the canvas gets stuck to the extent.
Using the pan tool is useless as the canvas is frozen in that position.

You can unfreeze the canvas by clicking "Zoom to Extents" or "Zoom last tools".

I've tested with QGIS 2.4.3 and Master on Debian Stretch, with Sqlite and Postgis as data sources.

I'm attaching data to reproduce the problem.

Steps to reproduce:

- Open project
- Open attribute table and select only the row with id 2 or name "No geometry"
- Press the "Pan map to the selected rows"
- Try to pan the map

pan_bug.zip (58.7 KB) Tudor Bărăscu, 2016-06-23 12:58 PM

Associated revisions

Revision 0bac4b86
Added by Matthias Kuhn about 4 years ago

Don't lock canvas when trying to pan to null geometry

Fix #15122

Revision 925d14b2
Added by Matthias Kuhn about 4 years ago

Don't lock canvas when trying to pan to null geometry

Fix #15122

History

#1 Updated by Tudor Bărăscu about 4 years ago

tested in QGIS 2.14.3 (not 2.4.3.. typo). Can't seem to be able to update my original posting.

#2 Updated by dr - about 4 years ago

Confirm. Faced with the same issue. Also you can freeze canvas by zooming out with mouse wheel.

#3 Updated by Matthias Kuhn about 4 years ago

  • Assignee set to Matthias Kuhn

#4 Updated by Anonymous about 4 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF