Skip to content

Commit

Permalink
closes #945. Update screenshot code to potential fix on mac
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanmelt committed Apr 2, 2019
1 parent 285a1f0 commit 32021d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cosmos/gui/utilities/screenshot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def self.screenshot_window (window, filename)
end

# Create a Pixmap to save the screenshot into
pixmap = Qt::Pixmap::grabWindow(window.winId())
pixmap = Qt::Pixmap::grabWidget(window)
pixmap.save(filename)
pixmap
end
Expand Down

0 comments on commit 32021d0

Please sign in to comment.