summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Günther <tom@toms-cafe.de>2008-01-06 16:50:41 +0100
committerThomas Günther <tom@toms-cafe.de>2008-01-06 16:50:41 +0100
commit44a1345518f541fa4e2bcfd610a355fa6e6c2df5 (patch)
tree287bc0464ab1039829a6f55a3795c0fd98660ef6
parent0950fbeeab511b08e083b88aafb009b2920ca205 (diff)
downloadvdr-plugin-sudoku-44a1345518f541fa4e2bcfd610a355fa6e6c2df5.tar.gz
vdr-plugin-sudoku-44a1345518f541fa4e2bcfd610a355fa6e6c2df5.tar.bz2
Fixed (un)marking the cell on the bottom right
-rw-r--r--HISTORY1
-rw-r--r--puzzle.cpp4
2 files changed, 3 insertions, 2 deletions
diff --git a/HISTORY b/HISTORY
index 2e99f23..5326ae1 100644
--- a/HISTORY
+++ b/HISTORY
@@ -29,3 +29,4 @@ ____-__-__: Version _._._
- Fixed compiler warnings with gcc-4.1.2.
- Updated FSF address in the license information.
- Improved copyright and license information in the header of all source files.
+- Fixed (un)marking the cell on the bottom right.
diff --git a/puzzle.cpp b/puzzle.cpp
index 1f8ea18..9a140f8 100644
--- a/puzzle.cpp
+++ b/puzzle.cpp
@@ -17,7 +17,7 @@
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
- * $Id: puzzle.cpp 106 2007-12-03 23:28:24Z tom $
+ * $Id: puzzle.cpp 107 2008-01-06 15:50:41Z tom $
*/
#include "puzzle.h"
@@ -209,7 +209,7 @@ bool Puzzle::marked(Pos pos) const
/** Toggle the mark for this cell. */
void Puzzle::toggle_mark(Pos pos)
{
- assert (pos < Pos::last());
+ assert(pos <= Pos::last());
marks[pos] = !marks[pos];
}