diff --git a/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java b/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java index 13d3d822dfa..85d3285e704 100644 --- a/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java +++ b/chart/org.eclipse.birt.chart.device.swt/src/org/eclipse/birt/chart/device/swt/SwtRendererImpl.java @@ -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 ); + } } /**