]> Creatis software - creaMaracasVisu.git/commitdiff
no message
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 1 Mar 2011 18:16:21 +0000 (18:16 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Tue, 1 Mar 2011 18:16:21 +0000 (18:16 +0000)
bbtk/src/bbmaracasvisuAxeVolume.cxx

index bee0a9a..db203c7 100644 (file)
@@ -48,7 +48,12 @@ void AxeVolume::Process()
         {
                if (sizeLstPointR<iAxe)
                {
-                       r = bbGetInputlstPointR()[ bbGetInputlstPointR().size()-1 ];
+                       if (bbGetInputlstPointR().size()>=1)
+                       {
+                               r = bbGetInputlstPointR()[ bbGetInputlstPointR().size()-1 ];
+                       } else {
+                               r = 1;
+                       }
                } else {
                        r = bbGetInputlstPointR()[ iAxe ];
                }