css: Don't crash when printing gradients

... in the fallback code. Instead print a FIXME.
This commit is contained in:
Benjamin Otte 2012-09-27 16:24:30 +02:00
parent 94c0c1542b
commit 5c4fc16cd4

View File

@ -810,9 +810,11 @@ pattern_value_print (const GValue *value,
} }
surface_print (surface, string); surface_print (surface, string);
break; break;
case CAIRO_PATTERN_TYPE_SOLID:
case CAIRO_PATTERN_TYPE_LINEAR: case CAIRO_PATTERN_TYPE_LINEAR:
case CAIRO_PATTERN_TYPE_RADIAL: case CAIRO_PATTERN_TYPE_RADIAL:
g_string_append (string, "none /* FIXME: add support for printing gradients */");
break;
case CAIRO_PATTERN_TYPE_SOLID:
default: default:
g_assert_not_reached (); g_assert_not_reached ();
break; break;