diff --git a/src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx b/src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx index 001547ba57..f4f00ca2a8 100755 --- a/src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx +++ b/src/QANewDBRepNaming/QANewDBRepNaming_FeatureCommands.cxx @@ -101,7 +101,7 @@ static Standard_Integer QANewDBRepNaming_NameBooleanOperationFeat (Draw_Interpre Standard_Integer nb, const char ** arg) { - if (nb != 6 || nb != 7) { + if (nb != 6 && nb != 7) { di << "QANewDBRepNaming_NameBooleanOperationFeat : Error" << "\n"; return 1; }