<div dir="ltr"><div>not confirmed in f21562c</div>not confirmed in f1f2e16</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 3 December 2013 16:40, Vincent Mora <span dir="ltr"><<a href="mailto:vincent.mora@oslandia.com" target="_blank">vincent.mora@oslandia.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I observed the same behavior (qgis master) with two points alligned on x (a very simple layer indeed).<div class="HOEnZb">

<div class="h5"><br>
<br>
On 02/12/2013 12:15, Bernhard Ströbl wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear devs,<br>
<br>
today I stumbled on a strange behaviour when zoooming to a point.<br>
To reproduce: load a point layer, select one feature in the table and click "Zoom to selection". The result is the same as if clicking "Pan map to Selection", i.e the map is panned but not zoomed.<br>


I _think_ this is because the bounding box of the selected feature has a width and height of 0. Try iface.activeLayer().<u></u>boundingBoxOfSelected().width(<u></u>)/.height() in the Python console.<br>
Geometrically speaking this is correct but as the zoom to selected function builds on a bounding box with width/height > 0 the outcome for the user is bad.<br>
My suggestion would be to define a small rectangle around the bounding boxes' center if it has size 0 in the zoomToSelected function.<br>
<br>
Tried with QGIS 2.0.1 and current master<br>
<br>
Shall I file a ticket for this?<br>
<br>
Bernhard<br>
<br>
<br>
__________ Information from ESET Mail Security, version of virus signature database 9119 (20131202) __________<br>
<br>
The message was checked by ESET Mail Security.<br>
<a href="http://www.eset.com" target="_blank">http://www.eset.com</a><br>
<br>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</blockquote>
<br>
______________________________<u></u>_________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org" target="_blank">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/qgis-<u></u>developer</a><br>
</div></div></blockquote></div><br></div>