Skip to content
Permalink
Browse files

Bug fix for geographic element clone

  • Loading branch information
philippjfr committed Apr 25, 2017
1 parent 0dc4ed6 commit df0ba893e273e8a143d78419f6491c27ed814fe5
Showing with 1 addition and 1 deletion.
  1. +1 −1 geoviews/element/geo.py
@@ -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)

0 comments on commit df0ba89

Please sign in to comment.
You can’t perform that action at this time.