From 5b1d0723c100c28807761b5990f3c48bbe4255ca Mon Sep 17 00:00:00 2001 From: su_v Date: Sun, 23 Sep 2012 19:03:04 +0200 Subject: Fixes bug #1050064: quiet console messages about supported values for 'color-interpolation-filters' (bzr r11668.1.4) --- src/style.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/style.cpp') diff --git a/src/style.cpp b/src/style.cpp index 2facc86d8..ba720d538 100644 --- a/src/style.cpp +++ b/src/style.cpp @@ -1236,7 +1236,9 @@ sp_style_merge_property(SPStyle *style, gint id, gchar const *val) case SP_PROP_COLOR_INTERPOLATION_FILTERS: // We read it but issue warning SPS_READ_IENUM_IF_UNSET(&style->color_interpolation_filters, val, enum_color_interpolation, true); - if( style->color_interpolation_filters.value != SP_CSS_COLOR_INTERPOLATION_SRGB ) { + static bool blab=true; // eliminate annoying repeated messages to console + if( blab && style->color_interpolation_filters.value != SP_CSS_COLOR_INTERPOLATION_SRGB ) { + blab = false; g_warning("Inkscape currently only supports color-interpolation-filters = sRGB"); } break; -- cgit v1.2.3