Skip to content

Commit

Permalink
Merge pull request #344 from tych0/reorder-script-surface-init
Browse files Browse the repository at this point in the history
module: reorder cairo script surface initialization
  • Loading branch information
lazka authored Oct 21, 2023
2 parents 6405839 + 1ef1ea2 commit 4a8a6ed
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cairo/cairomodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ PYCAIRO_MODINIT_FUNC PyInit__cairo(void)
if (PyType_Ready(&PycairoTextExtents_Type) < 0)
return NULL;

if (PyType_Ready(&PycairoSurface_Type) < 0)
return NULL;

#ifdef CAIRO_HAS_SCRIPT_SURFACE
if (PyType_Ready(&PycairoScriptDevice_Type) < 0)
return NULL;
Expand All @@ -223,8 +226,6 @@ PYCAIRO_MODINIT_FUNC PyInit__cairo(void)
if (PyType_Ready(&PycairoScaledFont_Type) < 0)
return NULL;

if (PyType_Ready(&PycairoSurface_Type) < 0)
return NULL;
#ifdef CAIRO_HAS_IMAGE_SURFACE
if (PyType_Ready(&PycairoImageSurface_Type) < 0)
return NULL;
Expand Down

0 comments on commit 4a8a6ed

Please sign in to comment.