Rename TextMetrics::dimension() to dim()

This commit is contained in:
Jean-Marc Lasgouttes 2019-02-19 18:04:43 +01:00
parent 91fc45ed35
commit 2ae51b947b
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ public:
std::pair<pit_type, ParagraphMetrics const *> last() const;
///
Dimension const & dimension() const { return dim_; }
Dimension const & dim() const { return dim_; }
///
Point const & origin() const { return origin_; }

View File

@ -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;