diff --git a/src/cg/cg2102.cpp b/src/cg/cg2102.cpp index ecfcf24f1..9120e84e1 100755 --- a/src/cg/cg2102.cpp +++ b/src/cg/cg2102.cpp @@ -2368,7 +2368,7 @@ bool TPrimanota_application::datareg_handler(TMask_field& f, KEY key) { const int ar = dr.year(); // Anno solare registri const TCausale & caus = cached_causale(m.get(F_CODCAUS), ar); - TRegistro& reg = caus.reg(); + TRegistro& reg = (TRegistro &) caus.reg(); const TString4 codreg = reg.name(); if (codreg.full())