Skip to content

Commit

Permalink
Merge pull request #41 from gkossakowski/master
Browse files Browse the repository at this point in the history
Work-around for CPS and vpm problem
  • Loading branch information
gkossakowski committed Feb 27, 2012
2 parents b649416 + 309f133 commit 18fbc34
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions src/com/google/gwt/sample/gwtdlx/client/GwtDlx.scala
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,20 @@ class GwtDlx extends EntryPoint {
sched {
val result = (Sudoku(board)).solve
ajax.setVisible(false)
//TODO(grek): Changed pattern patch on Option to if due to collision
//between Yvirtpatmat and CPS plugin. Changed back once it's fixed upstream.
if (result.isDefined) {
val soln = result.get
noSolution.setVisible(false)
for (r <- 0 until soln.length) {
for (c <- 0 until soln(r).length) {
getBox(r, c).setValue(soln(r)(c) + "")
}
}
ajax.setVisible(false)
} else
noSolution.setVisible(true)
result match {
case None => noSolution.setVisible(true)
case Some(soln) => {
noSolution.setVisible(false)
for (r <- 0 until soln.length) {
for (c <- 0 until soln(r).length) {
getBox(r, c).setValue(soln(r)(c) + "")
}
}
ajax.setVisible(false)
}
}
//TODO(grek): Work-around for CPS-vpm interaction problem.
()
}
}
}
Expand Down

0 comments on commit 18fbc34

Please sign in to comment.