io7m-com / jsycamore

Java embedded GUI package
https://www.io7m.com/software/jsycamore
ISC License
3 stars 0 forks source link

A PLACEMENT_TOP_ABOVE_FRAME embossed titlebar of height 1 is an error #2

Closed io7m closed 8 years ago

io7m commented 8 years ago

It triggers an assertion failure:

Exception in thread "AWT-EventQueue-0" org.valid4j.errors.RequireViolation: Rendered rectangle height must be positive
    at org.valid4j.impl.RequireViolationPolicy.handleViolation(RequireViolationPolicy.java:19)
    at org.valid4j.impl.CheckingPolicy.check(CheckingPolicy.java:25)
    at org.valid4j.Assertive.require(Assertive.java:150)
    at com.io7m.jsycamore.core.renderer.SyEmbossed.rectangle(SyEmbossed.java:83)
io7m commented 8 years ago

This is now invalid: PLACEMENT_TOP_ABOVE_FRAME is gone.