Skip to content

Commit 5d87dfa

Browse files
committed
diamond: Fix redraw when undoing Diamond placement
1 parent 36034bf commit 5d87dfa

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/variety/diamond.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@
138138
},
139139

140140
Cross: {
141+
posthook: {
142+
qans: function() {
143+
this.drawaround();
144+
}
145+
},
146+
141147
getDiamond: function() {
142148
return this.qans ? 1 : this.qsub ? 2 : 0;
143149
},
@@ -189,7 +195,6 @@
189195
cell.setQsub(0);
190196
});
191197
}
192-
this.drawaround();
193198
},
194199
dotCells: function() {
195200
var bx = this.bx,

0 commit comments

Comments
 (0)