gnome-games r7576 - in trunk/gnome-sudoku: . src/lib
- From: thinkle svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-games r7576 - in trunk/gnome-sudoku: . src/lib
- Date: Sun, 6 Apr 2008 22:33:17 +0100 (BST)
Author: thinkle
Date: Sun Apr 6 22:33:16 2008
New Revision: 7576
URL: http://svn.gnome.org/viewvc/gnome-games?rev=7576&view=rev
Log:
2008-04-06 Thomas Mills HInkle <tmhinkle gmail com>
* src/lib/gsudoku.py (SudokuGameDisplay.delete_by_tracker)
(delete_except_for_tracker): Check whether there is a value in
grid before calling grid.remove (fixes bug #435816)
Modified:
trunk/gnome-sudoku/ChangeLog
trunk/gnome-sudoku/src/lib/gsudoku.py
Modified: trunk/gnome-sudoku/src/lib/gsudoku.py
==============================================================================
--- trunk/gnome-sudoku/src/lib/gsudoku.py (original)
+++ trunk/gnome-sudoku/src/lib/gsudoku.py Sun Apr 6 22:33:16 2008
@@ -1258,7 +1258,8 @@
x,y,v = self.trackers[identifier][0]
ret.append((x,y,v,self.trackers_for_point(x,y,v)))
self.remove(x,y)
- self.grid.remove(x,y)
+ if self.grid and self.grid._get_(x,y):
+ self.grid.remove(x,y)
return ret
def delete_except_for_tracker (self, identifier):
@@ -1273,7 +1274,9 @@
):
removed.append((x,y,val,self.trackers_for_point(x,y,val)))
self.remove(x,y)
- self.grid.remove(x,y)
+ if self.grid and self.grid._get_(x,y):
+ self.grid.remove(x,y)
+
return removed
def add_tracker (self, x, y, tracker, val=None):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]