X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FGraphic3d%2FGraphic3d_HatchStyle.cxx;h=ebf108cfe2f37bbd4cf316604998c08a091ac388;hb=dc858f4c5a30a4d9bdb1e9755a802d1844dd0a99;hpb=e6afb53983172155891ef175943534e0e1a24f75 diff --git a/src/Graphic3d/Graphic3d_HatchStyle.cxx b/src/Graphic3d/Graphic3d_HatchStyle.cxx index 136119ddb2..ebf108cfe2 100644 --- a/src/Graphic3d/Graphic3d_HatchStyle.cxx +++ b/src/Graphic3d/Graphic3d_HatchStyle.cxx @@ -492,8 +492,8 @@ Graphic3d_HatchStyle::Graphic3d_HatchStyle (const Handle(Image_PixMap)& thePatte { Standard_ProgramError_Raise_if (thePattern.IsNull(), "Null pointer to a hatch pattern image"); Standard_ProgramError_Raise_if ( - thePattern->SizeX() != 32 || thePattern->SizeY() != 32 || thePattern->Format() != Image_PixMap::ImgGray, - "Hatch pattern must be a 32*32 bitmap (Image_PixMap::ImgGray format)"); + thePattern->SizeX() != 32 || thePattern->SizeY() != 32 || thePattern->Format() != Image_Format_Gray, + "Hatch pattern must be a 32*32 bitmap (Image_Format_Gray format)"); const Standard_Size aByteSize = thePattern->SizeBytes(); Handle(NCollection_AlignedAllocator) anAllocator = new NCollection_AlignedAllocator (16);