Skip to content

Commit

Permalink
Merge pull request #294 from carlthronson/master
Browse files Browse the repository at this point in the history
Bugzilla 483851 - Recent versions of BIRT/Eclipse show a blank pie chart
  • Loading branch information
Yulin Wang committed Apr 27, 2016
2 parents a9254f3 + 5259c86 commit fe8ae45
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
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 fe8ae45

Please sign in to comment.