]> granicus.if.org Git - graphviz/commitdiff
Pango plugin: remove unnecessary cast
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 19 Jul 2022 03:00:30 +0000 (20:00 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 26 Jul 2022 02:01:28 +0000 (19:01 -0700)
plugin/pango/gvloadimage_pango.c

index 12440b977db62121324b7bbc3cbbd65ec66a12e6..6819005f3cb34242ad79348d8b1c23587621e57d 100644 (file)
@@ -80,7 +80,7 @@ static cairo_surface_t* cairo_loadimage(GVJ_t * job, usershape_t *us)
 
 static void pango_loadimage_cairo(GVJ_t * job, usershape_t *us, boxf b, bool filled)
 {
-    cairo_t *cr = (cairo_t *) job->context; /* target context */
+    cairo_t *cr = job->context; /* target context */
     cairo_surface_t *surface;   /* source surface */
 
     assert(job);