diff options
Diffstat (limited to 'internal/ceres/block_structure.cc')
-rw-r--r-- | internal/ceres/block_structure.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/ceres/block_structure.cc b/internal/ceres/block_structure.cc index 5a1a5e1..00c4ce2 100644 --- a/internal/ceres/block_structure.cc +++ b/internal/ceres/block_structure.cc @@ -34,6 +34,9 @@ namespace ceres { namespace internal { bool CellLessThan(const Cell& lhs, const Cell& rhs) { + if (lhs.block_id == rhs.block_id) { + return (lhs.position < rhs.position); + } return (lhs.block_id < rhs.block_id); } |