Bug 169520 Can't enter margin of master page [05]
Can't enter margin of master page [05] Build number:2.2.0.v20061229 Steps to reproduce: 1.switch to "Master Page" in layout and go to margin 2.the original left margin is 1.25in,select the left margin data,and input"0",then "0.00" will be displayed" Expected result: Only "0" is displayed Actual result: "0.00" is displayed Error log: N/A
UI/org.eclipse.birt.report.designer.ui.views/src/org/eclipse/birt/report/designer/internal/ui/views/attributes/widget/MarginsPropertyDescriptor.java
true );
		combo.addSelectionListener( new SelectionAdapter( ) {
			public void widgetSelected( SelectionEvent e )
			{
				handleSelectedEvent( );
			}
		} );
		FormData data = new FormData( );
		data.top = new FormAttachment( spinner, 0, SWT.BOTTOM );
		data.left = new FormAttachment( spinner, 0, SWT.LEFT );
		data.right = new FormAttachment( spinner, 0, SWT.RIGHT );
		combo.setLayoutData( data );
		data = new FormData( );
		data.top = new FormAttachment( label, 0, SWT.BOTTOM );
		data.left = new FormAttachment( label, 0, SWT.LEFT );
		data.right = new FormAttachment( 100, -layout.spacing );
		spinner.setLayoutData( data );
		return container;
	}
	protected void handleSelectedEvent( )
	{
		BigDecimal bigValue = new BigDecimal( spinner.getSelection( ) );
		bigValue = bigValue.movePointLeft( spinner.getDigits( ) );
		String value = bigValue.toString( );
		if ( provider.getUnit( combo.getText( ) ) != null )
			value += provider.getUnit( combo.getText( ) );
		try
		{
			save( value );
		}