From 98c574e41a8c2cd9ecb0d25afef8578c3e79289b Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 11 Aug 2013 05:40:35 +0000 Subject: use 'greater/less then or equal to' operators rather then adding 1. --- source/blender/freestyle/intern/view_map/SteerableViewMap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/freestyle/intern/view_map/SteerableViewMap.cpp') diff --git a/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp b/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp index 7693afdce07..c777db6249f 100644 --- a/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp +++ b/source/blender/freestyle/intern/view_map/SteerableViewMap.cpp @@ -74,7 +74,7 @@ SteerableViewMap::SteerableViewMap(const SteerableViewMap& iBrother) _directions = iBrother._directions; _mapping = iBrother._mapping; _imagesPyramids = new ImagePyramid *[_nbOrientations + 1]; // one more map to store the complete visible VM - for (i = 0; i < _nbOrientations + 1; ++i) + for (i = 0; i <= _nbOrientations; ++i) _imagesPyramids[i] = new GaussianPyramid(*(dynamic_cast(iBrother._imagesPyramids[i]))); } -- cgit v1.2.3