Skip to content

Commit 45bd634

Browse files
committed
Fix pdf metadata fallback on old cairos.
1 parent 1a127d8 commit 45bd634

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/_mplcairo.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ void GraphicsContextRenderer::_set_metadata(std::optional<py::dict> metadata)
470470
if (!detail::cairo_pdf_surface_set_metadata) {
471471
py::module::import("warnings").attr("warn")(
472472
"cairo_pdf_surface_set_metadata requires cairo>=1.15.4");
473+
break;
473474
}
474475
auto const& key = it.first.cast<std::string>();
475476
if (key == "Title") {

0 commit comments

Comments
 (0)