Pick the parent list if sublist

git-svn-id: http://dev.geogebra.org/svn/trunk/geogebra@24441 23ce0884-8a58-47d3-bc5c-ddf1cd5b9f9e
Pick the parent list

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

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