fixed: viewer update on stylesheet change

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@307 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-28 22:55:16 +00:00
parent e38cc6e2c9
commit 610016b0f0
+1 -1
View File
@@ -69,7 +69,7 @@ Rotation DataViewer::getRotation() const {
void DataViewer::setCard(const CardP& card) {
if (!card) return; // TODO: clear viewer?
if (this->card == card) return; // already set
if (this->card == card && this->stylesheet == set->stylesheetFor(card)) return; // already set
assert(set);
this->card = card;
stylesheet = set->stylesheetFor(card);