Fix save int/string error for id

This commit is contained in:
Crom (Thibaut CHARLES) 2014-11-18 14:27:52 +01:00
parent e3c9db9552
commit 12e083eb1d

View File

@ -117,7 +117,8 @@ void Save(ref TreeView tree){
TreeIter it = new TreeIter();
store.getIterFirst(it);//TODO: fail if first is null
do{
for(int i=0 ; i<store.getNColumns() ; i++){
std.stdio.write("\t",store.getValueInt(it, 0));
foreach(i ; 1..store.getNColumns()){
std.stdio.write("\t",store.getValueString(it, i));
}
writeln();