From cc21f7d8bfc2af120b3f43e7b34fe0b01b744567 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 4 Nov 1997 10:00:24 +0000 Subject: [PATCH] Corretta perdita del focus dopo l'azzeramento dei colori git-svn-id: svn://10.65.10.50/trunk@5526 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- cg/cg2106.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }