Polygon: fix issue #9386

[SVN r86776]