Bugfix: fatal error when offsetting a surface results in more than one expolygon. #201

This commit is contained in:
Alessandro Ranellucci 2012-02-12 23:44:24 +01:00
parent ca704c4846
commit dbb40095b7

View file

@ -39,10 +39,10 @@ sub group {
sub offset {
my $self = shift;
return (ref $self)->new(
expolygon => $self->expolygon->offset_ex(@_),
return map (ref $self)->new(
expolygon => $_,
map { $_ => $self->$_ } qw(surface_type depth_layers bridge_angle),
);
), $self->expolygon->offset_ex(@_);
}
sub add_hole {