Commit 1c8e371d authored by Paul Asmuth's avatar Paul Asmuth
Browse files

fix a bug in fill_style_read

The `fill_style_read` method would previously not accept
color specifications of the form ({rgb, rgba} ...).
parent 6e18cdc6
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -136,13 +136,13 @@ ReturnCode fill_style_read(
    return fill_style_read_hatch(ctx, expr_get_list_tail(expr), style);
  }

  if (expr_is_value(expr)) {
  if (expr_is_value(expr) || expr_is_list(expr)) {
    return fill_style_read_solid(ctx, expr, style);
  }

  return errorf(
      ERROR,
      "invalid <fill-style>; expected a color or one of (none), "
      "invalid <fill-style>; expected a color, 'hatch' or 'none', "
      "but got: '{}'",
      expr_inspect(expr));
}