From: Pawel Date: Thu, 26 Jul 2012 09:54:13 +0000 (+0200) Subject: 0023353: Graphic3d_NOM_STONE used twice in an if-clause. X-Git-Tag: V6_5_4_beta1~86 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=aceabd1b534ab672e777fd70f41bd8f8aa6560b5;p=occt-copy.git 0023353: Graphic3d_NOM_STONE used twice in an if-clause. Graphic3d_NOM_STONE appeared twice in the if-clause. --- diff --git a/src/ViewerTest/ViewerTest.cxx b/src/ViewerTest/ViewerTest.cxx index 56ed1d8a44..148208c8cd 100755 --- a/src/ViewerTest/ViewerTest.cxx +++ b/src/ViewerTest/ViewerTest.cxx @@ -134,7 +134,6 @@ static Graphic3d_NameOfMaterial GetMaterialFromName( const char *name ) else if ( !strcasecmp(name,"STONE" ) ) mat = Graphic3d_NOM_STONE; else if ( !strcasecmp(name,"CHROME" ) ) mat = Graphic3d_NOM_CHROME; else if ( !strcasecmp(name,"ALUMINIUM" ) ) mat = Graphic3d_NOM_ALUMINIUM; - else if ( !strcasecmp(name,"STONE" ) ) mat = Graphic3d_NOM_STONE; else if ( !strcasecmp(name,"NEON_PHC" ) ) mat = Graphic3d_NOM_NEON_PHC; else if ( !strcasecmp(name,"NEON_GNC" ) ) mat = Graphic3d_NOM_NEON_GNC; else if ( !strcasecmp(name,"PLASTER" ) ) mat = Graphic3d_NOM_PLASTER;