From 2eb0e331a1d3fe27c79dee23cd81852d62b5ffde Mon Sep 17 00:00:00 2001 From: Alessandro Bonazzi Date: Sun, 2 Oct 2022 00:23:16 +0200 Subject: [PATCH] Patch level : 12.0 nopatch Files correlati : Commento: Modificata get_mask in _get_mask --- src/ve/ve0400.cpp | 4 +++- src/ve/ve0600.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/ve/ve0400.cpp b/src/ve/ve0400.cpp index 1ea413dd1..3ea886624 100755 --- a/src/ve/ve0400.cpp +++ b/src/ve/ve0400.cpp @@ -1281,9 +1281,11 @@ bool TVendite_tabapp::user_create() if (ok) { const TString& name = get_tabname(); + if (name == TAB_GRMERC) { - TMask& mask = *get_mask(); + TMask& mask = *get_mask(MODE_QUERY); + mask.set_handler(201, codgmc_handler); } } diff --git a/src/ve/ve0600.cpp b/src/ve/ve0600.cpp index c8dba9996..4b1d3762f 100755 --- a/src/ve/ve0600.cpp +++ b/src/ve/ve0600.cpp @@ -76,7 +76,7 @@ protected: int find_cve(TSheet_field& s, const TString& cve) const; public: - virtual TMask* get_mask(int) { return _msk; } + virtual TMask* _get_mask(int) { return _msk; } virtual TRelation* get_relation() const { return _rel; } virtual bool user_create(); @@ -286,7 +286,7 @@ class TCSC_tab_app : public TRelation_application protected: public: - virtual TMask* get_mask(int) { return _msk; } + virtual TMask* _get_mask(int) { return _msk; } virtual TRelation* get_relation() const { return _rel; } virtual bool user_create();