X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fjexer%2FTApplication.java;h=ec93629b0b17f9584336ff855f0d1010660121be;hb=bfa37f3b2ef87d39c15fad7d565c00cbabd92acf;hp=b21c066fefb8ecd11dda667aec245e0ea28c98db;hpb=b4570a63cef669dc85335a7f8d571a5eefdfc3c7;p=fanfix.git diff --git a/src/jexer/TApplication.java b/src/jexer/TApplication.java index b21c066..ec93629 100644 --- a/src/jexer/TApplication.java +++ b/src/jexer/TApplication.java @@ -1723,12 +1723,12 @@ public class TApplication implements Runnable { } } } - assert (cell.getWidth() == Cell.Width.RIGHT); - - if (x > 0) { - Cell leftHalf = getScreen().getCharXY(x - 1, y); - if (leftHalf.getWidth() == Cell.Width.LEFT) { - invertCell(x - 1, y, true); + if (cell.getWidth() == Cell.Width.RIGHT) { + if (x > 0) { + Cell leftHalf = getScreen().getCharXY(x - 1, y); + if (leftHalf.getWidth() == Cell.Width.LEFT) { + invertCell(x - 1, y, true); + } } } }