https://bz.apache.org/bugzilla/show_bug.cgi?id=59686

Greg Woolsey <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|FIXED                       |---
             Status|RESOLVED                    |REOPENED

--- Comment #2 from Greg Woolsey <[email protected]> ---
(In reply to Andreas Beeker from comment #1)
> Thanks for bringing this up - fixed with r1747605
> 
> So getTextHeight() didn't crash on my test, but getLineWidth() did.
> Just recently I've implemented the rendering of xslf tables.
> One of the methods where were necessary is XSLFTable.updateCellAnchor()
> which calculates the positions of the cells and their anchors.
> This method is triggered, when you call XSLFTableCell.getAnchor() the first
> time ... maybe this info is useful to you.

The unit test TestXSLFTable.checkTextHeight() fails when run from the build.xml
test target on Windows - the height returned on my system was 91.890625, not 88
as the test expects.  There are many factors that could be at play when
calculating rendering measurements, especially on Windows.  For example, I
typically use a non-standard system font and scaling factor (I like my default
text small).

Could this test instead check that the method returns a value in a reasonable
range, or doesn't throw an exception?  This spurious failure makes it hard to
test changes before I submit patches.

Yes, I'm stuck using Windows.  Talk to my boss if you want about getting me a
Mac :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to