fix execMark - don't do anything if the puzzle is solved

This commit is contained in:
Stefan Bühler 2012-04-20 15:22:15 +02:00
parent 3b8408f7ac
commit 1c4b3a5f0d

View File

@ -427,6 +427,8 @@ namespace qcross {
} }
void CCrossFieldWidget::execMark(int x, int y, MarkerType & marker) { void CCrossFieldWidget::execMark(int x, int y, MarkerType & marker) {
if (m_Solved) return;
switch (marker) { switch (marker) {
case CMT_MARKED: case CMT_MARKED:
if (m_Picture->solution().pixel(x, y)) { if (m_Picture->solution().pixel(x, y)) {