[LyX/master] rename overshadowing TextMetrics
Juergen Spitzmueller
spitz at lyx.org
Fri Feb 20 14:57:51 UTC 2026
commit a2ebd3ee5f48932c3ae7eb193de6418ad0595534
Author: Juergen Spitzmueller <spitz at lyx.org>
Date: Fri Feb 20 15:52:09 2026 +0100
rename overshadowing TextMetrics
---
src/BufferView.cpp | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 654ca9ce51..1d93ba827c 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -3980,17 +3980,17 @@ void BufferView::draw(frontend::Painter & pain, bool paint_caret)
Cursor cur(d->cursor_);
while (cur.depth() > 1) {
if (cur.inTexted()) {
- TextMetrics const & tm = textMetrics(cur.text());
- if (d->caret_geometry_.left >= tm.origin().x
- && d->caret_geometry_.right <= tm.origin().x + tm.dim().width())
+ TextMetrics const & tms = textMetrics(cur.text());
+ if (d->caret_geometry_.left >= tms.origin().x
+ && d->caret_geometry_.right <= tms.origin().x + tms.dim().width())
break;
}
cur.pop();
}
- TextMetrics const & tm = textMetrics(cur.text());
- if (tm.contains(cur.pit())) {
- ParagraphMetrics const & pm = tm.parMetrics(cur.pit());
- pm.getRow(cur.pos(), cur.boundary()).changed(true);
+ TextMetrics const & tms = textMetrics(cur.text());
+ if (tms.contains(cur.pit())) {
+ ParagraphMetrics const & pms = tms.parMetrics(cur.pit());
+ pms.getRow(cur.pos(), cur.boundary()).changed(true);
}
}
}
More information about the lyx-cvs
mailing list