Skip to content

Commit

Permalink
Merge pull request #1670 from ales-erjavec/mds-null-line
Browse files Browse the repository at this point in the history
[FIX] MDS Widget: Fix zero length line, gray square bug
  • Loading branch information
kernc authored Oct 17, 2016
2 parents 07dafdf + cded80f commit f11c39b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Orange/widgets/unsupervised/owmds.py
Original file line number Diff line number Diff line change
Expand Up @@ -949,6 +949,11 @@ def jitter(x, factor=1, rstate=None):
emb_x[self._similar_pairs][i * 2 + 1],
emb_y[self._similar_pairs][i * 2 + 1]
)
if item.line().isNull():
# Null (zero length) line causes bad rendering artifacts
# in Qt when using the raster graphics system
# (see gh-issue: 1668).
continue
pen = QtGui.QPen(QtGui.QBrush(QtGui.QColor(204, 204, 204)), 2)
pen.setCosmetic(True)
item.setPen(pen)
Expand Down

0 comments on commit f11c39b

Please sign in to comment.