]> git.lyx.org Git - lyx.git/blobdiff - src/coordcache.C
* src/LaTeX.C
[lyx.git] / src / coordcache.C
index a9703933685db164423fec8f1029df8c2510ce44..b55b296ef13b4adc000914b06f43c6fa0d84de83 100644 (file)
@@ -49,11 +49,11 @@ void CoordCache::clear()
 }
 
 
-Point CoordCache::get(LyXText const * text, pit_type pit)
+Point CoordCache::get(LyXText const * text, pit_type pit) const
 {
-       ParPosCache::iterator const it = pars_.find(text);
+       ParPosCache::const_iterator const it = pars_.find(text);
        BOOST_ASSERT(it != pars_.end());
-       InnerParPosCache::iterator const posit = it->second.find(pit);
+       InnerParPosCache::const_iterator const posit = it->second.find(pit);
        BOOST_ASSERT(posit != it->second.end());
        return posit->second;
 }