Commit 06a0c725 authored by Wolfgang Rohdewald's avatar Wolfgang Rohdewald
Browse files

new assertion for UITile.tile setter

parent 00dfe6c3
......@@ -304,6 +304,7 @@ class UITile(AnimatedMixin, QGraphicsObject, StrMixin):
def tile(self, value): # pylint: disable=arguments-differ
"""set tile name and update display"""
if value is not self._tile:
assert not self._tile.isKnown or (self._tile.exposed == value.exposed)
self._tile = value
self.setDrawingOrder() # because known tiles are above unknown tiles
self.update()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment