Fix of bug #350246: Broken snap-to-grid inside objects.