From: nds Date: Thu, 8 Nov 2018 13:04:05 +0000 (+0300) Subject: Correction for a regression cased by "0030268: Inspectors - improvements in VInspecto... X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ad4261a904240fb864a14e2f6aed30a9b49ac36c;p=occt-copy.git Correction for a regression cased by "0030268: Inspectors - improvements in VInspector plugin" --- diff --git a/src/Quantity/Quantity_Color.cxx b/src/Quantity/Quantity_Color.cxx index c6c478adf4..3c056ff8eb 100644 --- a/src/Quantity/Quantity_Color.cxx +++ b/src/Quantity/Quantity_Color.cxx @@ -14,7 +14,6 @@ // commercial license or contractual agreement. #include -#include #include #include @@ -48,8 +47,6 @@ static Standard_Real TheEpsilon = 0.0001; Standard_Boolean Quantity_Color::ColorFromName (const Standard_CString theName, Quantity_NameOfColor& theColor) { - return Quantity::NameOfColorFromString (theName, theColor); - /* TCollection_AsciiString aName (theName); aName.UpperCase(); if (aName.Search("QUANTITY_NOC_") == 1) @@ -66,7 +63,7 @@ Standard_Boolean Quantity_Color::ColorFromName (const Standard_CString theName, return Standard_True; } } - return Standard_False;*/ + return Standard_False; } Quantity_Color::Quantity_Color () { @@ -2043,8 +2040,6 @@ switch (AName) { Standard_CString Quantity_Color::StringName ( const Quantity_NameOfColor AName) { - return Quantity::NameOfColorToString (AName); -/* Standard_CString TheName; switch (AName) { @@ -3605,7 +3600,7 @@ switch (AName) { throw Standard_OutOfRange("Bad name"); break; } -return (TheName);*/ +return (TheName); } //