mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
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:
@@ -69,7 +69,7 @@ Rotation DataViewer::getRotation() const {
|
|||||||
|
|
||||||
void DataViewer::setCard(const CardP& card) {
|
void DataViewer::setCard(const CardP& card) {
|
||||||
if (!card) return; // TODO: clear viewer?
|
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);
|
assert(set);
|
||||||
this->card = card;
|
this->card = card;
|
||||||
stylesheet = set->stylesheetFor(card);
|
stylesheet = set->stylesheetFor(card);
|
||||||
|
|||||||
Reference in New Issue
Block a user