apply fix from #2418 to 2.3.x branch
enable painted for svg_renderer