aboutsummaryrefslogtreecommitdiffhomepage
path: root/Eigen
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2012-10-24 09:58:35 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2012-10-24 09:58:35 +0200
commit0753463d70618d1201be0e57b0771c26d38ebf09 (patch)
tree5885e11ee6b67e4bb663d69999325e91fffd9fd9 /Eigen
parent7857118f2e9395586ab4bde555bda36d26c9b04e (diff)
Fix bug #519: AlignedBox::dim() was wrong for dynamic dimensions
Diffstat (limited to 'Eigen')
-rw-r--r--Eigen/src/Geometry/AlignedBox.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Geometry/AlignedBox.h b/Eigen/src/Geometry/AlignedBox.h
index 5830fcd35..c0f97300c 100644
--- a/Eigen/src/Geometry/AlignedBox.h
+++ b/Eigen/src/Geometry/AlignedBox.h
@@ -79,7 +79,7 @@ EIGEN_MAKE_ALIGNED_OPERATOR_NEW_IF_VECTORIZABLE_FIXED_SIZE(_Scalar,_AmbientDim)
~AlignedBox() {}
/** \returns the dimension in which the box holds */
- inline Index dim() const { return AmbientDimAtCompileTime==Dynamic ? m_min.size()-1 : Index(AmbientDimAtCompileTime); }
+ inline Index dim() const { return AmbientDimAtCompileTime==Dynamic ? m_min.size() : Index(AmbientDimAtCompileTime); }
/** \deprecated use isEmpty */
inline bool isNull() const { return isEmpty(); }