]> git.lyx.org Git - lyx.git/blobdiff - src/TextCache.C
Herbert's patch, part 1
[lyx.git] / src / TextCache.C
index f7133d60302feff5171c6861452159353fc453ac..6b3d9b4b832cecf651d6584cb91b968693ed618f 100644 (file)
@@ -21,6 +21,7 @@
 #include "TextCache.h"
 #include "buffer.h"
 #include "bufferlist.h"
+#include "debug.h"
 
 using std::ostream;
 using std::for_each;
@@ -75,7 +76,7 @@ LyXText * TextCache::findFit(Buffer * b, int p)
        Cache::iterator it = find_if(cache.begin(), cache.end(),
                                     text_fits(b, p));
        if (it != cache.end()) {
-               LyXText * tmp = (*it).second.second;
+               LyXText * tmp = it->second.second;
                cache.erase(it);
                return tmp;
        }