Bug 54561 - [PATCH] Line spacing issue with Slide.draw() function
Summary: [PATCH] Line spacing issue with Slide.draw() function
Status: RESOLVED FIXED
Alias: None
Product: POI
Classification: Unclassified
Component: HSLF (show other bugs)
Version: 3.9-FINAL
Hardware: Macintosh Mac OS X 10.4
: P2 normal (vote)
Target Milestone: ---
Assignee: POI Developers List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2013-02-14 17:30 UTC by Don Boulia
Modified: 2015-11-29 00:58 UTC (History)
0 users



Attachments
sample ppt demonstrating the problem (62.50 KB, application/vnd.ms-powerpoint)
2013-02-14 17:30 UTC, Don Boulia
Details
Proposed patch (386 bytes, patch)
2013-02-14 17:31 UTC, Don Boulia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Don Boulia 2013-02-14 17:30:39 UTC
Created attachment 29953 [details]
sample ppt demonstrating the problem

The current TextPainter class handles linespacing attributes for absolute values (represented by a negative linespacing number) incorrectly.  It adds the value of linespacing to both the ascent and descent of the TextElement, which results in rendering twice as much space as it should when drawing slides.  Sample PPT demonstrates the problem if you try to render the slide.
Comment 1 Don Boulia 2013-02-14 17:31:56 UTC
Created attachment 29954 [details]
Proposed patch
Comment 2 Andreas Beeker 2015-11-29 00:58:31 UTC
PPTX2PNG renders this now ok ... nothing to change/apply anymore