2004-08-14 14:04:37 +00:00
|
|
|
|
|
|
|
#include "coordcache.h"
|
|
|
|
#include "debug.h"
|
|
|
|
|
|
|
|
CoordCache theCoords;
|
|
|
|
|
|
|
|
// just a helper to be able to set a breakpoint
|
|
|
|
void lyxbreaker(void const * data, const char * hint, int size)
|
|
|
|
{
|
2004-10-05 10:11:42 +00:00
|
|
|
lyxerr << "break on pointer: " << data << " hint: " << hint
|
2004-08-14 14:04:37 +00:00
|
|
|
<< " size: " << size << std::endl;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-10-05 10:11:42 +00:00
|
|
|
void CoordCache::clear()
|
2004-08-14 14:04:37 +00:00
|
|
|
{
|
|
|
|
lyxerr << "CoordCache: removing " << arrays_.data_.size()
|
|
|
|
<< " arrays" << std::endl;
|
|
|
|
lyxerr << "CoordCache: removing " << insets_.data_.size()
|
|
|
|
<< " insets" << std::endl;
|
|
|
|
arrays_.clear();
|
|
|
|
insets_.clear();
|
|
|
|
}
|
|
|
|
|