diff --git a/cg/cg2106.cpp b/cg/cg2106.cpp index 1535d8910..173acca2c 100755 --- a/cg/cg2106.cpp +++ b/cg/cg2106.cpp @@ -122,10 +122,10 @@ bool TColor_mask::color_handler(TMask_field& f, KEY k) bool TColor_mask::reset_handler(TMask_field& f, KEY k) { - if (k == K_SPACE && yesno_box("Si desidera azzerare tutti i colori?")) + if (k == K_SPACE && f.yesno_box("Si desidera azzerare tutti i colori?")) { app().reset_colors(); - TSheet_field& s = (TSheet_field&)f.mask().field(101); + TSheet_field& s = f.mask().sfield(101); s.set_back_and_fore_color(NORMAL_BACK_COLOR, NORMAL_COLOR, -1); s.force_update(); }