Commit df0f32c5 authored by twanvl's avatar twanvl

fixed: viewer update on stylesheet change

parent ccbbe432
......@@ -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);
......
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