Code

Fix for bug #372412. As well as proper handling of borders (assuming edgeMode="none...