In some cases [28568] may be wrong, this change should fix that

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@28570 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e
#3401 shortest distance for point and polynomial works

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@28571 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e