Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313465

Summary: A blank page is generated if there is a large margin and preview as PDF
Product: z_Archived Reporter: Xiaodan Wang <xwang>
Component: BIRTAssignee: Yu Chen <yChen>
Status: CLOSED FIXED QA Contact: Xiaodan Wang <xwang>
Severity: normal    
Priority: P3 CC: hustlg
Version: 2.6.0   
Target Milestone: 2.6.0 RC3   
Hardware: PC   
OS: Windows XP   
Whiteboard: Need-Auto
Attachments:
Description Flags
report design
none
the pdf file generated from the attached report design none

Description Xiaodan Wang CLA 2010-05-19 02:45:28 EDT
Created attachment 169054 [details]
report design

Description:
A blank page is generated if there is a large margin and preview as PDF.

Build number:
2.6.0.v20100519-0630

Steps to reproduce:
1. New a text and go to Property Editor->Padding and Property Editor->Margin.
2. Set top margin to 1000000 %.
3. Preview as PDF.

Expected result:
If the margin is larger than the page size, it is removed and the text is generated.

Actual result:
See the screenshot.

Error log:
N/A
Comment 1 Xiaodan Wang CLA 2010-05-19 02:46:04 EDT
Created attachment 169055 [details]
the pdf file generated from the attached report design
Comment 2 Yu Chen CLA 2010-05-24 23:44:41 EDT
The margin is too large and out of the limitation of java int.

Fixed.
Comment 3 Xiaodan Wang CLA 2010-05-26 02:36:17 EDT
Big margin is ignored.

Verified in build (2.6.0.v20100519-0630), closed.