[[ RefactorGraphics ]] fix selectionrect drawing artefacts