To reproduce behavior, set coordinates of gradient in color.inc to something like:

  // Coordinates of gradient (x, y, width, height)
  'gradient' => array(1120, 187, 49, 24),

Notice that instead of starting at 1120, it starts at 49. This is because the third coordinate is not actually the width; it is the x2 coordinate (x2 = x + width).

I have provided a patch to resolve this issue inside the color.module. (see attached)

CommentFileSizeAuthor
patch_113.txt707 bytesms2011

Comments

dries’s picture

It looks like you are correct, but it would be nice if Steven (author of color.module) could confirm this. :)

michaelfavia’s picture

Experienced and confirmed. RTBC Steven?

drumm’s picture

Version: 5.1 » 6.x-dev
Status: Needs review » Reviewed & tested by the community

Committed to 5.x.

Applies cleanly with offset to head.

gábor hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

OK, committed to Drupal 6.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.