Commit ed07b656 authored by twanvl's avatar twanvl

Text viewer is reset on script change

parent c6a84f9b
...@@ -37,7 +37,13 @@ void DataViewer::draw(RotatedDC& dc, const Color& background) { ...@@ -37,7 +37,13 @@ void DataViewer::draw(RotatedDC& dc, const Color& background) {
// fill with background color // fill with background color
clearDC(dc.getDC(), background); clearDC(dc.getDC(), background);
// update style scripts // update style scripts
if (card) set->updateFor(card); //%% if (card) set->updateFor(card);
Context& ctx = getContext();
FOR_EACH(v, viewers) {
if (v->getStyle()->update(ctx)) {
v->onStyleChange();
}
}
// draw values // draw values
FOR_EACH(v, viewers) { // draw low z index fields first FOR_EACH(v, viewers) { // draw low z index fields first
if (v->getStyle()->visible) {// visible if (v->getStyle()->visible) {// visible
......
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