Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 112031 Details for
Bug 244882
[Improve Report Layout Capabilities] Charts got clipped when exporting to PDF and DOC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
patch file for word emitter
patch.txt (text/plain), 1.25 KB, created by
JingwenShen
on 2008-09-08 22:45:59 EDT
(
hide
)
Description:
patch file for word emitter
Filename:
MIME Type:
Creator:
JingwenShen
Created:
2008-09-08 22:45:59 EDT
Size:
1.25 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.birt.report.engine.emitter.wpml >Index: src/org/eclipse/birt/report/engine/emitter/wpml/WordEmitterImpl.java >=================================================================== >RCS file: /cvsroot/birt/source/org.eclipse.birt.report.engine.emitter.wpml/src/org/eclipse/birt/report/engine/emitter/wpml/WordEmitterImpl.java,v >retrieving revision 1.13.2.4 >diff -u -r1.13.2.4 WordEmitterImpl.java >--- src/org/eclipse/birt/report/engine/emitter/wpml/WordEmitterImpl.java 2 Jun 2008 10:29:45 -0000 1.13.2.4 >+++ src/org/eclipse/birt/report/engine/emitter/wpml/WordEmitterImpl.java 9 Sep 2008 02:44:16 -0000 >@@ -807,6 +807,21 @@ > > double width = WordUtil.convertImageSize( image.getWidth( ), defaultW ); > >+ // recalculate the width ,height according to the cellwidth >+ double originalRatio = height / width; >+ >+ // //1 inch = 25.4mm 72pt = 1 inch >+ // pt is absolute measure different from relative measure px >+ >+ double cellWidth = WordUtil.twipToPt( context.getCurrentWidth( ) ); >+ >+ if ( width > cellWidth ) >+ { >+ width = cellWidth; >+ >+ height = (int) ( width * originalRatio ); >+ >+ } > // //1 inch = 25.4mm 72pt = 1 inch > // pt is absolute measure different from relative measure px >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 244882
: 112031 |
112163
|
112718