0022316: Mistakes in TestTopOpeDraw_OtherCommands.cxx
authorSZY <>
Fri, 20 Jan 2012 12:44:07 +0000 (12:44 +0000)
committerbugmaster <bugmaster@opencascade.com>
Mon, 5 Mar 2012 15:32:02 +0000 (19:32 +0400)
src/TestTopOpeDraw/TestTopOpeDraw_OtherCommands.cxx

index 48cd48d..0a647aa 100755 (executable)
@@ -98,21 +98,21 @@ Standard_EXPORT void OthersCommands_flags(Standard_Integer& na,const char** a,Te
        }
        else if(a[iloc][j] == 'c') {
          col=Standard_True;
-         if(a[iloc+1] == "blanc") Color = Draw_blanc;
-         else if (a[iloc+1] == "rouge")   Color = Draw_rouge;
-         else if (a[iloc+1] == "vert")    Color = Draw_vert;
-         else if (a[iloc+1] == "bleu")    Color = Draw_bleu;
-         else if (a[iloc+1] == "cyan")    Color = Draw_cyan;
-         else if (a[iloc+1] == "or")      Color = Draw_or;
-         else if (a[iloc+1] == "magenta") Color = Draw_magenta;
-         else if (a[iloc+1] == "marron")  Color = Draw_marron;
-         else if (a[iloc+1] == "orange")  Color = Draw_orange;
-         else if (a[iloc+1] == "rose")    Color = Draw_rose;
-         else if (a[iloc+1] == "saumon")  Color = Draw_saumon;
-         else if (a[iloc+1] == "violet")  Color = Draw_violet;
-         else if (a[iloc+1] == "jaune")   Color = Draw_jaune;
-         else if (a[iloc+1] == "kaki")    Color = Draw_kaki;
-         else if (a[iloc+1] == "corail")  Color = Draw_corail;
+         if(strcmp(a[iloc+1], "blanc") == 0)         Color = Draw_blanc;
+         else if (strcmp(a[iloc+1], "rouge") == 0)   Color = Draw_rouge;
+         else if (strcmp(a[iloc+1], "vert") == 0)    Color = Draw_vert;
+         else if (strcmp(a[iloc+1], "bleu") == 0)    Color = Draw_bleu;
+         else if (strcmp(a[iloc+1], "cyan") == 0)    Color = Draw_cyan;
+         else if (strcmp(a[iloc+1], "or") == 0)      Color = Draw_or;
+         else if (strcmp(a[iloc+1], "magenta") == 0) Color = Draw_magenta;
+         else if (strcmp(a[iloc+1], "marron") == 0)  Color = Draw_marron;
+         else if (strcmp(a[iloc+1], "orange") == 0)  Color = Draw_orange;
+         else if (strcmp(a[iloc+1], "rose") == 0)    Color = Draw_rose;
+         else if (strcmp(a[iloc+1], "saumon") == 0)  Color = Draw_saumon;
+         else if (strcmp(a[iloc+1], "violet") == 0) Color = Draw_violet;
+         else if (strcmp(a[iloc+1], "jaune") == 0)   Color = Draw_jaune;
+         else if (strcmp(a[iloc+1], "kaki") == 0)    Color = Draw_kaki;
+         else if (strcmp(a[iloc+1], "corail") == 0)  Color = Draw_corail;
          decal++;dloc++;
        }
       }