Patch level : 10.0
Files correlati : fe0.exe Ricompilazione Demo : [ ] Commento : Migliorata associazione "colorata" delle note di variazione (segnalazione GOMBE) git-svn-id: svn://10.65.10.50/branches/R_10_00@22565 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
parent
cdfb83ce80
commit
4be1ad68c1
@ -1162,7 +1162,9 @@ void TDati_rilevanti_msk::alleg_sort(TSheet_field& s) const
|
|||||||
const int c_importo = s.cid2index(A_IMPORTO);
|
const int c_importo = s.cid2index(A_IMPORTO);
|
||||||
const int tot = s.items();
|
const int tot = s.items();
|
||||||
|
|
||||||
for (int k = 0; k < 2; k++)
|
for (int k = 0; k < 3; k++)
|
||||||
|
{
|
||||||
|
bool swapped = false; // Something swapped?
|
||||||
for (int i = tot-1; i >= 0; i--)
|
for (int i = tot-1; i >= 0; i--)
|
||||||
{
|
{
|
||||||
const TString8 numrett = s.cell(i, c_numrett);
|
const TString8 numrett = s.cell(i, c_numrett);
|
||||||
@ -1199,8 +1201,9 @@ void TDati_rilevanti_msk::alleg_sort(TSheet_field& s) const
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (j >= 0 && j < tot) // L'ho trovata
|
if (j >= 0 && j < tot && i != j+1) // L'ho trovata
|
||||||
{
|
{
|
||||||
|
swapped = true;
|
||||||
s.move_row(i, j+1);
|
s.move_row(i, j+1);
|
||||||
if (*s.cell(j, c_numrett) <= ' ')
|
if (*s.cell(j, c_numrett) <= ' ')
|
||||||
s.set_back_and_fore_color(REQUIRED_BACK_COLOR, NORMAL_COLOR, j, c_numdoc);
|
s.set_back_and_fore_color(REQUIRED_BACK_COLOR, NORMAL_COLOR, j, c_numdoc);
|
||||||
@ -1208,6 +1211,9 @@ void TDati_rilevanti_msk::alleg_sort(TSheet_field& s) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (!swapped)
|
||||||
|
break; // No row swapping -> exit
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void TDati_rilevanti_msk::load_sheet()
|
void TDati_rilevanti_msk::load_sheet()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user