--- C:\DOCUME~1\ZSOLT~1.DES\LOCALS~1\Temp\HeaderCtrl.cpp-revBASE.svn001.tmp.cpp Cs nov. 19 01:07:58 2009 +++ C:\zsolt\upp-mirror\uppsrc\CtrlLib\HeaderCtrl.cpp Cs nov. 19 00:50:30 2009 @@ -696,7 +696,7 @@ #endif void HeaderCtrl::Serialize(Stream& s) { - int version = 0x02; + int version = 0x03; s / version; if(version < 0x01) { int n = col.GetCount(); @@ -724,7 +724,7 @@ int dummy = 0; s % dummy; } - else { + else if(version < 0x03){ int t = 0; for(int i = 0; i < n; i++) { if(n == col.GetCount()) { @@ -746,6 +746,33 @@ } } } + else{ + int t = 0; + for(int i = 0; i < n; i++) { + if(n == col.GetCount()) { + int ndx = col[i].index; + double r = col[i].ratio; + s % ndx; + s % r; + int q = FindIndex(ndx); + if(q >= 0) { + col[q].ratio = r; + col.Swap(t++, q); + } + bool visible = IsTabVisible(i); + s % visible; + if(i