Not null check added to DataBase::GetLike

git-svn-id: svn://ultimatepp.org/upp/trunk@2029 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
rylek 2010-02-08 08:08:48 +00:00
parent df43d27537
commit 79dceade1c
2 changed files with 7 additions and 1 deletions

View file

@ -69,6 +69,9 @@ csCZ("přetečení při výpočtu v reálných číslech")
// CalcNode.cpp
T_("lambda-expression")
csCZ("")
T_("Expression evaluator")
csCZ("Výrazový kalkulátor")
@ -162,6 +165,9 @@ csCZ("nepárová levá závorka; začátek podvýrazu: %s")
T_("constant or function expected, found: ")
csCZ("očekávána konstanta nebo funkce, nalezeno: ")
T_("')' (subexpression starts at: %s)")
csCZ("")
// CalcBasic.cpp

View file

@ -2094,7 +2094,7 @@ DataSet DataTableColumn::GetLike(WString mask)
int *d = done.Begin();
for(const int *s = done.Begin(), *e = done.End(); s < e; s++) {
WString value = Get(*s);
if(wcc.Matches(value))
if(!IsNull(value) && wcc.Matches(value))
*d++ = *s;
}
done.SetCount(d - done.Begin());