Skip to content

Commit

Permalink
Bugzilla 483851 - Recent versions of BIRT/Eclipse show a blank pie chart
Browse files Browse the repository at this point in the history
with Eclipse MAT.

In the setProperty method of the SWT renderer implementation, check for
sProperty equals IDeviceRenderer.EXPECTED_BOUNDS, and if so, set clipping
on the graphics context.

Signed-off-by: Carl Thronson <cthronson@actuate.com>
  • Loading branch information
Carl Thronson committed Apr 27, 2016
1 parent 88bacff commit 5259c86
Showing 1 changed file with 9 additions and 0 deletions.
Expand Up @@ -1969,6 +1969,15 @@ else if ( sProperty.equals( IDeviceRenderer.DPI_RESOLUTION ) )
{
getDisplayServer( ).setDpiResolution( ( (Integer) oValue ).intValue( ) );
}
else if ( sProperty.equals( IDeviceRenderer.EXPECTED_BOUNDS ) )
{
Bounds bo = (Bounds)oValue;
int x = (int)Math.round( bo.getLeft( ) );
int y = (int)Math.round( bo.getTop( ) );
int width = (int)Math.round( bo.getWidth( ) );
int height = (int)Math.round( bo.getHeight( ) );
this._gc.setClipping( x, y, width, height );
}
}

/**
Expand Down

0 comments on commit 5259c86

Please sign in to comment.