From 414bf3c10434762ead8cdc219b041f8167f50700 Mon Sep 17 00:00:00 2001 From: Josh Ashton Date: Tue, 26 Mar 2024 15:27:19 -0600 Subject: [PATCH] cleaned up codebase and comments, and fixed unexpected behavior relating to incorrect values --- src/gui/CellGUI.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/CellGUI.java b/src/gui/CellGUI.java index 9c33445..2c30d5a 100644 --- a/src/gui/CellGUI.java +++ b/src/gui/CellGUI.java @@ -65,7 +65,7 @@ class CellGUI extends JPanel { // Populate the cell with the appropriate value or notes. if(cell.getValue() == 0) { internalPanel.setLayout(noteLayout); - generateNotes(noteMode); + generateNotes(true); } else { internalPanel.setLayout(valueLayout); valueLabel.setText(Integer.toString(cell.getValue())); @@ -130,7 +130,7 @@ class CellGUI extends JPanel { public void removeValue() { if(!selected) return; - cell.setValue(0, true); + cell.setValue(0, false); if(!cell.isInitValue()) valueLabel.setText("");