]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
To fix a regression
authorapo <apo@opencascade.com>
Fri, 23 Sep 2005 08:10:08 +0000 (08:10 +0000)
committerapo <apo@opencascade.com>
Fri, 23 Sep 2005 08:10:08 +0000 (08:10 +0000)
src/VISU_I/VISU_GaussPoints_i.cc

index c2b34a82051cb01b5c4f98d20d128cef3c8a97e6..389b38edfc917994613e1f61992046bfe3f32bd5 100644 (file)
@@ -249,7 +249,6 @@ VISU::GaussPoints_i
   try{
     VISU::Prs3d_i::CreateActor(anActor,theIO);
     anActor->SetRepresentation(VTK_POINTS);
-    anActor->SetVTKMapping(true);
     UpdateActor(anActor);
   }catch(...){
     anActor->Delete();
@@ -339,9 +338,9 @@ VISU::GaussPoints_i
   unsigned char* anAlphaDataPtr = (unsigned char*)anAlphaImageData->GetScalarPointer();
   unsigned char *aCompositeDataPtr = (unsigned char * )aCompositeImageData->GetScalarPointer();
 
-  int aCompositeSize = aMainImageSize[0] * aMainImageSize[1];
   int aNbMainComponents = aMainImageData->GetNumberOfScalarComponents();
   int aNbAlphaComponents = anAlphaImageData->GetNumberOfScalarComponents();
+  int aCompositeSize = aMainImageSize[0] * aMainImageSize[1] * aNbCompositeComponents;
   
   int aMainId = 0, anAlphaId = 0, aCompositeId = 0;
   for(; aCompositeId < aCompositeSize;)