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 "insets/insetbase.h"
19 #include <boost/assert.hpp>
24 // just a helper to be able to set a breakpoint
25 void lyxbreaker(void const * data, const char * hint, int size)
27 lyxerr << "break on pointer: " << data << " hint: " << hint
28 << " size: " << size << std::endl;
33 void CoordCache::clear()
43 Point CoordCache::get(LyXText const * text, lyx::pit_type pit)
45 ParPosCache::iterator const it = pars_.find(text);
46 BOOST_ASSERT(it != pars_.end());
47 InnerParPosCache::iterator const posit = it->second.find(pit);
48 BOOST_ASSERT(posit != it->second.end());