Patch level : 4.0
Files correlati : Ricompilazione Demo : [ ] Commento : Corretta gestione valuta di riferimento per righe degli sheet git-svn-id: svn://10.65.10.50/trunk@14677 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
efca000b56
commit
5791f58ecf
include
@ -1249,16 +1249,15 @@ void TEditable_field::reset_driver(short id)
|
||||
{
|
||||
if (_drivers != NULL)
|
||||
{
|
||||
if (id < 0)
|
||||
if (id == 0)
|
||||
_drivers->destroy();
|
||||
else
|
||||
{
|
||||
for (int f = _drivers->last(); f >= 0; f--)
|
||||
{
|
||||
TOperable_field * dr = driver(f);
|
||||
|
||||
if (dr->dlg() == id)
|
||||
_drivers->destroy(f, TRUE);
|
||||
const short fid = (short)_drivers->get_long(f);
|
||||
if (fid == id)
|
||||
_drivers->destroy(f, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -697,7 +697,7 @@ public:
|
||||
TOperable_field* driver(int n) const;
|
||||
|
||||
// @cmember Azzera i campi driver
|
||||
void reset_driver(short id = -1);
|
||||
void reset_driver(short id = 0); // id = 0 toglie tutti i drivers
|
||||
// @cmember Aggiunge un campo driver
|
||||
bool add_driver(short id);
|
||||
// Controlla l'associazione driver/driven
|
||||
|
Loading…
x
Reference in New Issue
Block a user