]> git.lyx.org Git - features.git/blobdiff - src/insets/insetbase.C
Asger's commentary, const-correct and bug-squashing little beauty.
[features.git] / src / insets / insetbase.C
index bc390d79b9617b9871869c771296b88f065dea32..b29fb8e24cdd64233d822f96e48e388d6493185c 100644 (file)
@@ -293,13 +293,13 @@ bool InsetBase::editing(BufferView * bv) const
 
 int InsetBase::xo() const
 {
-       return theCoords.insets_.x(this);
+       return theCoords.getInsets().x(this);
 }
 
 
 int InsetBase::yo() const
 {
-       return theCoords.insets_.y(this);
+       return theCoords.getInsets().y(this);
 }
 
 
@@ -310,7 +310,7 @@ bool InsetBase::covers(int x, int y) const
        //      << " x1: " << xo() << " x2: " << xo() + width()
        //      << " y1: " << yo() - ascent() << " y2: " << yo() + descent()
        //      << std::endl;
-       return theCoords.insets_.has(this)
+       return theCoords.getInsets().has(this)
                        && x >= xo()
                        && x <= xo() + width()
                        && y >= yo() - ascent()