Skip to content

Commit

Permalink
Bug fix for geographic element clone
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Apr 25, 2017
1 parent 0dc4ed6 commit df0ba89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geoviews/element/geo.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def __init__(self, data, **kwargs):

def clone(self, data=None, shared_data=True, new_type=None,
*args, **overrides):
if 'crs' not in overrides and isinstance(new_type, _Element):
if 'crs' not in overrides and (not new_type or isinstance(new_type, _Element)):
overrides['crs'] = self.crs
return super(_Element, self).clone(data, shared_data, new_type,
*args, **overrides)
Expand Down

0 comments on commit df0ba89

Please sign in to comment.