You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2012/12/04 15:28:34 UTC
[Bug 52297] Bullets are not aligned properly while converting ppt
slide to image
https://issues.apache.org/bugzilla/show_bug.cgi?id=52297
Jared <da...@saic.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |NEW
--- Comment #5 from Jared <da...@saic.com> ---
In looking at the failing PPT, this appears to be the failure in
TextPainter.java:
elem[i]._bulletOffset > elem[i]._textOffset
Might change:
if(elem[i]._bullet != null){
graphics.drawString(elem[i]._bullet.getIterator(), (float)(pen.x +
elem[i]._bulletOffset), (float)pen.y);
}
To:
if(elem[i]._bullet != null){
graphics.drawString(elem[i]._bullet.getIterator(), (float)(pen.x +
elem[i]._bulletOffset), (float)pen.y);
if (elem[i]._bulletOffset >= elem[i]._textOffset) {
elem[i]._textOffset+= elem[i]._bulletOffset;
}
}
I will try this out locally.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org