Skip to content

Commit

Permalink
Fix pdf metadata fallback on old cairos.
Browse files Browse the repository at this point in the history
  • Loading branch information
anntzer committed Sep 30, 2021
1 parent 1a127d8 commit 45bd634
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/_mplcairo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ void GraphicsContextRenderer::_set_metadata(std::optional<py::dict> metadata)
if (!detail::cairo_pdf_surface_set_metadata) {
py::module::import("warnings").attr("warn")(
"cairo_pdf_surface_set_metadata requires cairo>=1.15.4");
break;
}
auto const& key = it.first.cast<std::string>();
if (key == "Title") {
Expand Down

0 comments on commit 45bd634

Please sign in to comment.