[lasem] svg_view: emit transparent color when paint url is not found.
- From: Emmanuel Pacaud <emmanuel src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [lasem] svg_view: emit transparent color when paint url is not found.
- Date: Tue, 16 Oct 2012 21:09:11 +0000 (UTC)
commit 5324d0fb190a38db3aca5ccd823f54ed74148896
Author: Emmanuel Pacaud <emmanuel gnome org>
Date: Tue Oct 16 23:08:43 2012 +0200
svg_view: emit transparent color when paint url is not found.
src/lsmsvgview.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/lsmsvgview.c b/src/lsmsvgview.c
index 36afec5..dc4d9a7 100644
--- a/src/lsmsvgview.c
+++ b/src/lsmsvgview.c
@@ -788,6 +788,8 @@ _paint_url (LsmSvgView *view,
!LSM_IS_SVG_PATTERN_ELEMENT (element)) ||
lsm_svg_view_circular_reference_check (view, element)) {
+ cairo_set_source_rgba (view->dom_view.cairo, 0, 0, 0, 0);
+
lsm_warning_render ("[LsmSvgView::_paint_url] Paint url not found: %s", url);
return;
@@ -829,7 +831,7 @@ _paint_url (LsmSvgView *view,
cairo_set_source (cairo, view->pattern_data->pattern);
} else
- cairo_set_source_rgb (cairo, 0.0, 0.0, 0.0);
+ cairo_set_source_rgba (cairo, 0.0, 0.0, 0.0, 0.0);
_end_pattern (view);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]