Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed show methods using Cairo for julia v0.5 #907

Merged
merged 2 commits into from
Oct 6, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/Gadfly.jl
Original file line number Diff line number Diff line change
Expand Up @@ -969,6 +969,7 @@ end

try
getfield(Compose, :Cairo) # throws if Cairo isn't being used
global show
@compat function show(io::IO, ::MIME"image/png", p::Plot)
draw(PNG(io, Compose.default_graphic_width,
Compose.default_graphic_height), p)
Expand All @@ -977,9 +978,10 @@ end

try
getfield(Compose, :Cairo) # throws if Cairo isn't being used
global show
@compat function show(io::IO, ::MIME"application/postscript", p::Plot)
draw(PS(io, Compose.default_graphic_width,
Compose.default_graphic_height), p)
Compose.default_graphic_height), p);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Semi-colon is unnecessary, right?

end
end

Expand Down