Corretto sbrago menu indice se si annulla la stampa
git-svn-id: svn://10.65.10.50/trunk@1368 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
5e540e903e
commit
991195ab5e
include
@ -456,7 +456,7 @@ bool TTextfile::append (const char *l)
|
||||
if (_interactive)
|
||||
{
|
||||
TString *ll = new TString (l);
|
||||
_page.add (ll, _lines - _page_start - 1);
|
||||
_page.add (ll, _lines - _page_start - 1l);
|
||||
_page_end++;
|
||||
|
||||
int len = 0;
|
||||
|
@ -160,6 +160,8 @@ HIDDEN void build_menu_tree(TArray& flat, TArray& tree, int level)
|
||||
|
||||
void TViswin::build_index_menu()
|
||||
{
|
||||
if (_menu_present) return;
|
||||
|
||||
// builds bk_menu tree and index menu
|
||||
TArray bk_tree;
|
||||
TToken_string tt(128);
|
||||
@ -206,6 +208,8 @@ void TViswin::build_index_menu()
|
||||
if (bds._menu.items() > 0)
|
||||
add_menu(bds._menu, bds._father_id);
|
||||
}
|
||||
|
||||
_menu_present = TRUE;
|
||||
}
|
||||
|
||||
void TViswin::exec_link()
|
||||
@ -1091,7 +1095,7 @@ void TViswin::abort_print ()
|
||||
_txt.freeze ();
|
||||
freeze ();
|
||||
set_focus ();
|
||||
close_print ();
|
||||
close_print();
|
||||
}
|
||||
}
|
||||
|
||||
@ -2257,7 +2261,8 @@ TViswin::TViswin(const char *fname,
|
||||
_scrolling (FALSE), _selflag (FALSE), _need_update (TRUE), _need_scroll (none),
|
||||
_multiple (FALSE), _rulers(rulers), _txt_to_find(64),
|
||||
_frozen (FALSE), _brwfld(brwfld), _link_button(-1),
|
||||
_down_dir(TRUE), _showbuts(FALSE), _case_sensitive(FALSE)
|
||||
_down_dir(TRUE), _showbuts(FALSE), _case_sensitive(FALSE),
|
||||
_menu_present(FALSE)
|
||||
{
|
||||
main_app().begin_wait();
|
||||
|
||||
|
@ -90,6 +90,7 @@ class TViswin : public TScroll_window
|
||||
bool _rulers;
|
||||
bool _showbuts;
|
||||
bool _inside_linkexec;
|
||||
bool _menu_present;
|
||||
|
||||
// viene istanziato soltanto se e' usata come controllo BROWSEFILE
|
||||
TBrowsefile_field* _brwfld;
|
||||
|
Loading…
x
Reference in New Issue
Block a user