Bug 174973 Master page "n of m" page count misaligned in PDF output
The second number in the "n of m" is not aligned vertically with the other elements in the grid. The numbers were aligned in 2.1.1, but are misaligned in 2.1.2 and in BIRT 2.2M4. To reproduce: - Open enclosed report and generate PDF or - Create new report - modify Master page by adding n of m page count - shrink column width of grid to .15 in for each column so the elements are closer together (makes alignment problem noticeable)
engine/org.eclipse.birt.report.engine.emitter.pdf/src/org/eclipse/birt/report/engine/emitter/pdf/PDFEmitter.java
layoutPointX2PDF( bi.endX-3*borders[BorderInfo.RIGHT_BORDER].borderWidth/4 ), 
	 	 						layoutPointY2PDF( bi.endY-bi.borderWidth/2+innerBorderWidth/2 ), 
	 	 						pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); 
	 	 				break;
	 				case BorderInfo.LEFT_BORDER:
	 					drawLine( layoutPointX2PDF( bi.startX-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointY2PDF( bi.startY ), 
	 	 						layoutPointX2PDF( bi.endX-bi.borderWidth/2+outerBorderWidth/2 ), layoutPointY2PDF( bi.endY ), 
	 	 						pdfMeasure(outerBorderWidth), bi.borderColor, "solid", cb ); 
	 	 				drawLine( layoutPointX2PDF( bi.startX+bi.borderWidth/2-innerBorderWidth/2 ), 
	 	 						layoutPointY2PDF( bi.startY+3*borders[BorderInfo.TOP_BORDER].borderWidth/4 ), 
	 	 						layoutPointX2PDF( bi.endX+bi.borderWidth/2-innerBorderWidth/2 ), 
	 	 						layoutPointY2PDF( bi.endY-3*borders[BorderInfo.BOTTOM_BORDER].borderWidth/4 ), 
	 	 						pdfMeasure(innerBorderWidth), bi.borderColor, "solid", cb ); 
	 	 				break;
	 				}
	 			}
	 		}
		}
		
		
		
		/**
		 * Draws a chunk of text at the pdf.
		 * @param text					the textArea to be drawed.
		 * @param textX					the X position of the textArea relative to current page.
		 * @param textY					the Y position of the textArea relative to current page.
		 * @param contentByte			the content byte to draw the text.
		 * @param contentByteHeight		the height of the content byte.
		 */
		protected void drawTextAt( ITextArea text, int textX, int textY,