summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dbaccess/source/ui/dlg/indexdialog.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dbaccess/source/ui/dlg/indexdialog.cxx b/dbaccess/source/ui/dlg/indexdialog.cxx
index 4d646974aa68..50c874248831 100644
--- a/dbaccess/source/ui/dlg/indexdialog.cxx
+++ b/dbaccess/source/ui/dlg/indexdialog.cxx
@@ -386,7 +386,7 @@ DBG_NAME(DbaIndexDialog)
if (m_pIndexes->end() == m_pIndexes->find(sNewIndexName))
break;
}
- if ((i>0x7FFFFFFF) || (i<0))
+ if (i == 0x7FFFFFFF)
{
OSL_FAIL("DbaIndexDialog::OnNewIndex: no free index name found!");
// can't do anything ... of course we try another base, but this could end with the same result ...