Text viewer is reset on script change

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@310 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-04-30 00:38:12 +00:00
parent 60cc0c6a16
commit ae68e99378
+7 -1
View File
@@ -37,7 +37,13 @@ void DataViewer::draw(RotatedDC& dc, const Color& background) {
// fill with background color
clearDC(dc.getDC(), background);
// 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
FOR_EACH(v, viewers) { // draw low z index fields first
if (v->getStyle()->visible) {// visible