From 1a859406eec4beb6d521bd5ffecc922949df0c75 Mon Sep 17 00:00:00 2001 From: guy Date: Fri, 15 Mar 1996 09:37:50 +0000 Subject: [PATCH] Corretta set_prompt git-svn-id: svn://10.65.10.50/trunk@2680 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/maskfld.cpp | 5 ++--- include/xvtility.cpp | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/include/maskfld.cpp b/include/maskfld.cpp index ff84c0663..0b52aee87 100755 --- a/include/maskfld.cpp +++ b/include/maskfld.cpp @@ -594,7 +594,7 @@ void TMask_field::set_prompt(const char* p) { WINDOW w = _promptwin != NULL_WIN ? _promptwin : _win; - word style = 0; + word style = XVT_FS_NONE; for (const char* s = p; *s == '@'; s++) { s++; @@ -605,8 +605,7 @@ void TMask_field::set_prompt(const char* p) default : CHECKS(0, "Invalid prompt style ", s); break; } } - if (style) - xvt_set_font(w, "", style, CHARY-12); + xvt_set_font(w, "", style, style != XVT_FS_NONE ? CHARY-12 : 0); xvt_vobj_set_title(w, (char*)p); } diff --git a/include/xvtility.cpp b/include/xvtility.cpp index 0233a15cc..fa8a94497 100755 --- a/include/xvtility.cpp +++ b/include/xvtility.cpp @@ -1172,7 +1172,7 @@ void xvt_statbar_set( // @doc INTERNAL -// @func Permette di cambiare il titolo alla barra di stato presente +// @func Permette di aggiornare il titolo alla barra di stato presente void xvt_statbar_refresh() // @xref