#i123501# fix invalid iterators in graphite
123197: Fixed selection problems when switching between normal and master mode.