1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-11 13:50:48 -05:00

[Helper] Fix render return success, not fail.

This commit is contained in:
Dave Davenport 2017-06-26 20:24:33 +02:00
parent cf7d0866d5
commit 5eb9fad4e3

View file

@ -1096,7 +1096,7 @@ cairo_surface_t* cairo_image_surface_create_from_svg ( const gchar* file, int he
if ( !failed ) {
cr = cairo_create ( surface );
cairo_scale ( cr, scale, scale );
failed = rsvg_handle_render_cairo ( handle, cr );
failed = rsvg_handle_render_cairo ( handle, cr ) == FALSE;
cairo_destroy ( cr );
}
@ -1105,6 +1105,7 @@ cairo_surface_t* cairo_image_surface_create_from_svg ( const gchar* file, int he
/** Rendering fails */
if ( failed ) {
g_warning ( "Failed to render file: '%s'", file );
cairo_surface_destroy ( surface );
surface = NULL;
}