+
+void CoordCache::doneUpdating() {
+ BOOST_ASSERT(updating);
+ updating = false;
+}
+
+Point CoordCache::get(LyXText const * text, lyx::pit_type pit)
+{
+ ParPosCache::iterator const it = pars_.find(text);
+ BOOST_ASSERT(it != pars_.end());
+ InnerParPosCache::iterator const posit = it->second.find(pit);
+ BOOST_ASSERT(posit != it->second.end());
+ return posit->second;
+}