Fix TUI visual glitch (empty button)
authorNiki Roo <niki@nikiroo.be>
Wed, 28 Jun 2017 20:19:45 +0000 (22:19 +0200)
committerNiki Roo <niki@nikiroo.be>
Wed, 28 Jun 2017 20:19:45 +0000 (22:19 +0200)
src/be/nikiroo/fanfix/reader/TuiReaderStoryWindow.java

index c942624bc4adc6de296386f9e3fd3549b6f876b6..26c1917deb441cf3939b3d669fcbdf89cc2c3323 100644 (file)
@@ -41,12 +41,12 @@ public class TuiReaderStoryWindow extends TWindow {
                statusBar = newStatusBar(desc(meta));
                statusBar.addShortcutKeypress(TKeypress.kbF10, TCommand.cmExit, "Exit");
 
-               navigationButtons = new ArrayList<TButton>(4);
+               navigationButtons = new ArrayList<TButton>(5);
 
                // -3 because 0-based and 2 for borders
                int row = getHeight() - 3;
 
-               addButton(" ", 0, row, null); // for bg colour when << button is pressed
+               navigationButtons.add(addButton(" ", 0, row, null)); // for bg colour when << button is pressed
                navigationButtons.add(addButton("<<  ", 0, row, new TAction() {
                        public void DO() {
                                setChapter(0);