Bug 197454 Export report as PDF and Postscript does not work correctly [1200]
Description: Export report as PDF and Postscript does not work correctly. Build number: 2.2.1.v20070719-0630 Steps to reproduce: 1. New a report with a label, set its visibility to "hide in html". 2. Preview in Web Viewer, click "Export Report" button, select format as "PDF" or "Postscript". 3. Click "Print as PDF" button. Expected result: The label is shown. Actual result: The label disappears. Error log: N/A
engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/layout/html/HTMLAbstractLM.java
if ( pageSetup.getMasterPageCount( ) > 0 )
			{
				MasterPageDesign masterPageDesign = pageSetup
						.findMasterPage( newMasterPage );
				if ( masterPageDesign != null )
				{
					context.setMasterPage( newMasterPage );
					return true;
				}
			}
		}
		return false;
	}
	protected MasterPageDesign getMasterPage( IReportContent report )
	{
		String masterPage = context.getMasterPage( );
		MasterPageDesign pageDesign = null;
		if ( masterPage != null && !"".equals( masterPage ) ) 
		{
			pageDesign = report.getDesign( ).findMasterPage( masterPage );
			if ( pageDesign != null )
			{
				return pageDesign;
			}
		}
		return getDefaultMasterPage( report );
	}
	private MasterPageDesign getDefaultMasterPage( IReportContent report )
	{
		PageSetupDesign pageSetup = report.getDesign( ).getPageSetup( );