X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCursor.cpp;h=c1458dc8a7a0cfc757870775cb2095e748ede087;hb=79bb97b1ba94ca5f4dc24e46bcedf7f18b2bebe3;hp=cd796458de12c4f551aea72f5e4d2d4094488082;hpb=acadb4d6083bc5dcf85d98041fbf6e717fc818ec;p=features.git diff --git a/src/Cursor.cpp b/src/Cursor.cpp index cd796458de..c1458dc8a7 100644 --- a/src/Cursor.cpp +++ b/src/Cursor.cpp @@ -548,6 +548,16 @@ int Cursor::currentMode() } +bool Cursor::inCoordCache() const +{ + CoordCache::Insets const & icache = bv_->coordCache().getInsets(); + for (size_t i = 0 ; i < depth() ; ++i) + if (!icache.has(&(*this)[i].inset())) + return false; + return true; +} + + void Cursor::getPos(int & x, int & y) const { Point p = bv().getPos(*this);