]> git.lyx.org Git - lyx.git/blobdiff - src/ParagraphMetrics.cpp
do what the FIXME suggested
[lyx.git] / src / ParagraphMetrics.cpp
index b249f01d9bf0baa1359a891d0355f71bc9a0f2c1..12f387d18f37e3680a15b69552387a41cee41e99 100644 (file)
@@ -198,7 +198,7 @@ void ParagraphMetrics::dump() const
 int ParagraphMetrics::rightMargin(BufferView const & bv) const
 {
        BufferParams const & params = bv.buffer().params();
-       TextClass const & tclass = params.textClass();
+       DocumentClass const & tclass = params.documentClass();
        frontend::FontMetrics const & fm = theFontMetrics(params.getFont());
        int const r_margin =
                bv.rightMargin()