2 * This file is part of LyX, the document processor.
3 * Licence details can be found in the file COPYING.
7 * Full author contact details are available in file CREDITS.
12 #include "coordcache.h"
17 #include "mathed/math_data.h"
18 #include "insets/insetbase.h"
20 #include <boost/assert.hpp>
25 // just a helper to be able to set a breakpoint
26 void lyxbreaker(void const * data, const char * hint, int size)
28 lyxerr << "break on pointer: " << data << " hint: " << hint
29 << " size: " << size << std::endl;
34 void CoordCache::clear()
44 Point CoordCache::get(LyXText const * text, lyx::pit_type pit)
46 ParPosCache::iterator const it = pars_.find(text);
47 BOOST_ASSERT(it != pars_.end());
48 InnerParPosCache::iterator const posit = it->second.find(pit);
49 BOOST_ASSERT(posit != it->second.end());