Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug related to unsupported entries containi… #243

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/Learning/KWData/KWDataTableDriverTextFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,10 +387,16 @@ KWObject* KWDataTableDriverTextFile::Read()
kwoObject = NULL;
break;
}
// Sinon, on sort pour ne pas comptabiliser le champs,
// uniquement si on est dans le cas d'un dictionnaire sans attribut natif
// Sinon, on sort si on est dans le cas d'un dictionnaire sans attribut natif
else if (kwcClass->GetNativeDataItemNumber() == 0)
{
// On comptabilise le champ dans le cas d'un champ dans le fichier pour indiquer que
// l'on a bien lu tous les champs de la ligne, dans ce cas particulier d'un ligne vide
// interpretee comme une ligne comportant un seul champ avec valeur manquante
if (livDataItemLoadIndexes.GetSize() == 1)
nField++;
break;
}
}

// Alimentation des champs de la derniere cle lue si necessaire
Expand Down
Loading