]> git.lyx.org Git - features.git/blobdiff - src/BufferView.C
This commit fixes a crash when accessing a math inset. This was due to an invalid...
[features.git] / src / BufferView.C
index e5e1678da8279c1490147d8a743574b9b03e9b1f..cc2afe0f325832cb0cbbbeacb80a514623a338d9 100644 (file)
@@ -608,7 +608,7 @@ void BufferView::center()
        bot.text()->redoParagraph(pit);
        Paragraph const & par = bot.text()->paragraphs()[pit];
        anchor_ref_ = pit;
-       offset_ref_ = bv_funcs::coordOffset(cursor_, cursor_.boundary()).y_
+       offset_ref_ = bv_funcs::coordOffset(*this, cursor_, cursor_.boundary()).y_
                + par.ascent() - height_ / 2;
 }