Cambiato il tipo di ritorno a find_filed per le sottosezioni

git-svn-id: svn://10.65.10.50/trunk@5094 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
augusto 1997-08-22 09:16:55 +00:00
parent c6daed2fc5
commit 2a2be1f919
2 changed files with 3 additions and 3 deletions

View File

@ -3612,11 +3612,11 @@ TForm_item& TForm::find_field(char s, pagetype t, short id) const
return ps->find_field(id);
}
TForm_item& TForm::find_field(char s, pagetype t, const char *section) const
TForm_subsection& TForm::find_field(char s, pagetype t, const char *section) const
{
const TPrint_section* ps = ((TForm*)this)->exist(s, t);
CHECKS(ps, "Can't find section for field ", section);
return ps->find_field(section);
return (TForm_subsection&)ps->find_field(section);
}
TPrint_section& TForm::section(char s, pagetype pos)

View File

@ -319,7 +319,7 @@ public:
// @cmember Ritorna il campo <p id>-esimo della sezione <p sec>
TForm_item& find_field(char sec, pagetype pag, short id) const;
// @cmember Ritorna la sottosezione <p name> della sezione <p sec>
TForm_item& find_field(char sec, pagetype pag, const char *name) const;
TForm_subsection& find_field(char sec, pagetype pag, const char *name) const;
// @cmember Ritorna l'offset x valido per tutte le sezioni
int& offset_x()
{ return _x; }