Skip to content

Commit

Permalink
Merge pull request #908 from kernc/owtable-color-continuous
Browse files Browse the repository at this point in the history
OWTable: fix 'color by class' for continuous class_var
  • Loading branch information
janezd committed Dec 10, 2015
2 parents 9f6bbe7 + f6b5fb5 commit 902509a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Orange/widgets/data/owtable.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,9 @@ def _on_distribution_color_changed(self):
while isinstance(model, QtGui.QAbstractProxyModel):
model = model.sourceModel()
data = model.source
if self.color_by_class and data.domain.class_var:
color_schema = [
QtGui.QColor(*c) for c in data.domain.class_var.colors]
class_var = data.domain.class_var
if self.color_by_class and class_var and class_var.is_discrete:
color_schema = [QtGui.QColor(*c) for c in class_var.colors]
else:
color_schema = None
if self.show_distributions:
Expand Down

0 comments on commit 902509a

Please sign in to comment.