From 2a2be1f9192fa9034d685f5952d5022f38a8ee49 Mon Sep 17 00:00:00 2001 From: augusto Date: Fri, 22 Aug 1997 09:16:55 +0000 Subject: [PATCH] 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 --- include/form.cpp | 4 ++-- include/form.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/form.cpp b/include/form.cpp index 9f637c828..05e45c2bc 100755 --- a/include/form.cpp +++ b/include/form.cpp @@ -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) diff --git a/include/form.h b/include/form.h index 67502aec5..5c9baec2f 100755 --- a/include/form.h +++ b/include/form.h @@ -319,7 +319,7 @@ public: // @cmember Ritorna il campo

-esimo della sezione

TForm_item& find_field(char sec, pagetype pag, short id) const; // @cmember Ritorna la sottosezione

della sezione

- 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; }