]> Creatis software - creaMaracasVisu.git/commitdiff
#3312 creaMaracasVisu Feature New Normal - Optimisation fill tool in manual _paint
authorEduardo DAVILA <davila@ei-ed-606.univ-lyon1.fr>
Thu, 10 Oct 2019 09:45:23 +0000 (11:45 +0200)
committerEduardo DAVILA <davila@ei-ed-606.univ-lyon1.fr>
Thu, 10 Oct 2019 09:45:23 +0000 (11:45 +0200)
lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/FillFilter.cpp

index 4ffbbc3b1bbba2014f835014ce9e3c8eae198130..04e5b6148c94f7e0c545f64789dddce6c87e5746 100644 (file)
@@ -74,9 +74,9 @@ void FillFilter::SetImages(vtkImageData *image,vtkImageData *image2) // virtual
 #else
                _auxImageFill->AllocateScalars(VTK_UNSIGNED_CHAR,1);
 #endif
-               unsigned char   * ptrAuxImageFill = (unsigned char      *)_auxImageFill->GetScalarPointer();
-               memset(ptrAuxImageFill, 0, (_maxX+1) * (_maxY+1) * (_maxZ+1) );
        }
+       unsigned char   * ptrAuxImageFill = (unsigned char      *)_auxImageFill->GetScalarPointer();
+       memset(ptrAuxImageFill, 0, (_maxX+1) * (_maxY+1) * (_maxZ+1) );
 
        _maxXback=_maxX;
        _maxYback=_maxY;