https://bz.apache.org/bugzilla/show_bug.cgi?id=58922
Dominik Stadler <dominik.stad...@gmx.at> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |WORKSFORME --- Comment #1 from Dominik Stadler <dominik.stad...@gmx.at> --- I tried to reproduce this with the following unit-test, this works for me, not sure what exactly fails for you here. If this is still a problem for you, then please reopen this bug and attach a complete unit-test which reproduces the problem. assertEquals(-1, run.getFontSize()); run.setFontSize(10); assertEquals(10, run.getFontSize()); run.setFontSize(Short.MAX_VALUE-1); assertEquals(Short.MAX_VALUE-1, run.getFontSize()); run.setFontSize(Short.MAX_VALUE); assertEquals(Short.MAX_VALUE, run.getFontSize()); run.setFontSize(Short.MAX_VALUE+1); assertEquals(Short.MAX_VALUE+1, run.getFontSize()); run.setFontSize(Integer.MAX_VALUE-1); assertEquals(Integer.MAX_VALUE-1, run.getFontSize()); run.setFontSize(Integer.MAX_VALUE); assertEquals(Integer.MAX_VALUE, run.getFontSize()); run.setFontSize(-1); assertEquals(-1, run.getFontSize()); assertEquals(-1, run.getTextPosition()); run.setTextPosition(10); assertEquals(10, run.getTextPosition()); run.setTextPosition(Short.MAX_VALUE-1); assertEquals(Short.MAX_VALUE-1, run.getTextPosition()); run.setTextPosition(Short.MAX_VALUE); assertEquals(Short.MAX_VALUE, run.getTextPosition()); run.setTextPosition(Short.MAX_VALUE+1); assertEquals(Short.MAX_VALUE+1, run.getTextPosition()); run.setTextPosition(Short.MAX_VALUE+1); assertEquals(Short.MAX_VALUE+1, run.getTextPosition()); run.setTextPosition(Integer.MAX_VALUE-1); assertEquals(Integer.MAX_VALUE-1, run.getTextPosition()); run.setTextPosition(Integer.MAX_VALUE); assertEquals(Integer.MAX_VALUE, run.getTextPosition()); run.setTextPosition(-1); assertEquals(-1, run.getTextPosition()); -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org