GetLegendGraphic on cascaded WMS layer produces a strange result

Description

This can be reproduced using the release data topp:states and population style. To reproduce:

The obtained legend image will look like the attaches `legend1.png`, it contains some extra space. The expected legend looks like 'legend2.png'.

Environment

None

Status

Assignee

Nuno Oliveira

Reporter

Nuno Oliveira

Triage

None

Fix versions

Affects versions

None

Components

Priority

Medium
Configure