We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52cbd80 commit b80f331Copy full SHA for b80f331
Orange/widgets/visualize/utils/widget.py
@@ -710,9 +710,11 @@ def _get_projection_data(self):
710
proposed = [a.name for a in self.projection.domain.attributes]
711
names = get_unique_names(self.data.domain, proposed)
712
713
- attributes = tuple([a.copy(name=n) for n, a in
714
- zip(names, self.projection.domain.attributes)]) \
715
- if proposed != names else ()
+ if proposed != names:
+ attributes = tuple([attr.copy(name=name) for name, attr in
+ zip(names, self.projection.domain.attributes)])
716
+ else:
717
+ attributes = self.projection.domain.attributes
718
return self.data.transform(
719
Domain(self.data.domain.attributes,
720
self.data.domain.class_vars,
0 commit comments