]> git.lyx.org Git - lyx.git/blobdiff - src/CoordCache.cpp
Fix dialog handling of Insert Plain Text
[lyx.git] / src / CoordCache.cpp
index 38baabf80581dac1f6a90966441b4344f08447d2..0974dc6c20069c92da975b3aea9fc483cf64c3d9 100644 (file)
 #include <config.h>
 
 #include "CoordCache.h"
-#include "debug.h"
 
+#include "debug.h"
 #include "Text.h"
 
+#include "support/docstring.h"
+
 #include "insets/Inset.h"
 
 #include <boost/assert.hpp>
@@ -43,8 +45,6 @@ void CoordCache::clear()
 {
        arrays_.clear();
        insets_.clear();
-       slices0_.clear();
-       slices1_.clear();
 }
 
 
@@ -53,7 +53,7 @@ void CoordCache::dump() const
        lyxerr << "InsetCache contains:" << std::endl;
        for (CoordCacheBase<Inset>::cache_type::const_iterator it = getInsets().getData().begin(); it != getInsets().getData().end(); ++it) {
                Inset const * inset = it->first;
-               Point const p = it->second;
+               Point const p = it->second.pos;
                lyxerr << "Inset " << inset << "(" << to_utf8(inset->name())
                        << ") has point " << p.x_ << "," << p.y_ << std::endl;
        }