summaryrefslogtreecommitdiffstats
path: root/src/style.cpp
diff options
context:
space:
mode:
authorsu_v <suv-sf@users.sourceforge.net>2012-09-23 17:03:04 +0000
committer~suv <suv-sf@users.sourceforge.net>2012-09-23 17:03:04 +0000
commit5b1d0723c100c28807761b5990f3c48bbe4255ca (patch)
treecafc41a781ea2b81d43bc5a4a144735d9e8ca940 /src/style.cpp
parentFrom bug #1048845: proposed addition to livarot for boolean operations (diff)
downloadinkscape-5b1d0723c100c28807761b5990f3c48bbe4255ca.tar.gz
inkscape-5b1d0723c100c28807761b5990f3c48bbe4255ca.zip
Fixes bug #1050064: quiet console messages about supported values for 'color-interpolation-filters'
(bzr r11668.1.4)
Diffstat (limited to 'src/style.cpp')
-rw-r--r--src/style.cpp4
1 files changed, 3 insertions, 1 deletions
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;