From 063673823d6a9b9744268f8ed4ee1103d238e927 Mon Sep 17 00:00:00 2001 From: guy Date: Mon, 4 Aug 2008 10:50:05 +0000 Subject: [PATCH] Patch level : 10.0 Files correlati : cg3 Ricompilazione Demo : [ ] Commento : Migliorata gestione maschere con tutti i campi a sola lettura git-svn-id: svn://10.65.10.50/trunk@16992 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/mask.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mask.cpp b/include/mask.cpp index 9ca69e17e..620d9ca2c 100755 --- a/include/mask.cpp +++ b/include/mask.cpp @@ -335,8 +335,10 @@ int TMask::first_focus(short id, bool dirty) if (f < 0 || !fld(f).active()) { f = find_first_active(curr_win()); - if (f < 0 && toolwin()) + if (f < 0 && toolwin() != NULL_WIN) f = find_first_active(toolwin()); + if (f < 0 && toolbar() != NULL_WIN) + f = find_first_active(toolbar()); } } }