Fix negation in previous commit.

This commit is contained in:
Jürg Lehni 2015-08-17 14:19:31 +02:00
parent 65f085cc98
commit 97ca1f6ff8

View file

@ -125,7 +125,7 @@ new function() {
attrs = getTransform(item._matrix);
if (segments.length === 0)
return null;
if (matchShapes && !item.isPolygon()) {
if (matchShapes && item.isPolygon()) {
if (segments.length >= 3) {
type = item._closed ? 'polygon' : 'polyline';
var parts = [];