- check();
-}
-
-
-void Changes::check() const
-{
- ChangeTable::const_iterator it = table_.begin();
- ChangeTable::const_iterator end = table_.end();
-
- bool dont_assert = true;
-
- lyxerr[Debug::CHANGES] << "Changelist:" << endl;
- for (; it != end; ++it) {
- if (lyxerr.debugging(Debug::CHANGES)) {
- lyxerr[Debug::CHANGES] << "Range of type " << it->change.type << " is "
- << it->range.start << "," << it->range.end << " author "
- << it->change.author << " time " << it->change.changetime << endl;
- }
-
- if (it + 1 == end)
- break;
-
- Range const & range(it->range);
- Range const & next((it + 1)->range);
- if (range.end != next.start)
- dont_assert = false;
- }
-
- if (lyxerr.debugging(Debug::CHANGES))
- lyxerr[Debug::CHANGES] << "End" << endl;
-
- BOOST_ASSERT(dont_assert);