Skip to content

Commit

Permalink
Call painter.end() before saving the buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
ales-erjavec committed Apr 10, 2017
1 parent a5edda2 commit 2946b89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Orange/widgets/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def write_image(cls, filename, scene):
scene.render(painter, target, rect)
except TypeError:
scene.render(painter) # QWidget.render() takes different params
cls._save_buffer(buffer, filename)
painter.end()
cls._save_buffer(buffer, filename)

@classmethod
def write(cls, filename, scene):
Expand Down

0 comments on commit 2946b89

Please sign in to comment.