From 2ae51b947b061dab057aae3c7d43ed5cdc11bd79 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Tue, 19 Feb 2019 18:04:43 +0100 Subject: [PATCH] Rename TextMetrics::dimension() to dim() --- src/TextMetrics.h | 2 +- src/insets/InsetText.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TextMetrics.h b/src/TextMetrics.h index a4a1e23740..1a3ce0ecca 100644 --- a/src/TextMetrics.h +++ b/src/TextMetrics.h @@ -49,7 +49,7 @@ public: std::pair last() const; /// - Dimension const & dimension() const { return dim_; } + Dimension const & dim() const { return dim_; } /// Point const & origin() const { return origin_; } diff --git a/src/insets/InsetText.cpp b/src/insets/InsetText.cpp index 107753e8ab..de6da629f8 100644 --- a/src/insets/InsetText.cpp +++ b/src/insets/InsetText.cpp @@ -140,7 +140,7 @@ void InsetText::clear() Dimension const InsetText::dimensionHelper(BufferView const & bv) const { TextMetrics const & tm = bv.textMetrics(&text_); - Dimension dim = tm.dimension(); + Dimension dim = tm.dim(); dim.wid += 2 * TEXT_TO_INSET_OFFSET; dim.des += TEXT_TO_INSET_OFFSET; dim.asc += TEXT_TO_INSET_OFFSET;