commit d8fbf4b6c2fdf2005f30129736cb675d8a166397
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Feb 20 15:51:10 2026 +0100
Rename overshadowing points
---
src/BufferView.cpp | 10 +++++-----
src/frontends/qt/GuiWorkArea.cpp | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 6731a63078..654ca9ce51 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -3730,11 +3730,11 @@ void BufferView::buildCaretGeometry(bool complet, Point
shift)
cg.top = 1000000;
cg.bottom = -1000000;
for (auto const & shape : cg.shapes)
- for (Point const & p : shape) {
- cg.left = min(cg.left, p.x);
- cg.right = max(cg.right, p.x);
- cg.top = min(cg.top, p.y);
- cg.bottom = max(cg.bottom, p.y);
+ for (Point const & pt : shape) {
+ cg.left = min(cg.left, pt.x);
+ cg.right = max(cg.right, pt.x);
+ cg.top = min(cg.top, pt.y);
+ cg.bottom = max(cg.bottom, pt.y);
}
}
diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp
index 8f9c7afbd8..2671b60f07 100644
--- a/src/frontends/qt/GuiWorkArea.cpp
+++ b/src/frontends/qt/GuiWorkArea.cpp
@@ -592,12 +592,12 @@ void GuiWorkArea::Private::drawCaret(QPainter & painter,
int horiz_offset,
for (auto const & shape : buffer_view_->caretGeometry().shapes) {
bool first = true;
QPainterPath path;
- for (Point const & p : shape) {
+ for (Point const & pt : shape) {
if (first) {
- path.moveTo(p.x - horiz_offset, p.y -
vert_offset);
+ path.moveTo(pt.x - horiz_offset, pt.y -
vert_offset);
first = false;
} else
- path.lineTo(p.x - horiz_offset, p.y -
vert_offset);
+ path.lineTo(pt.x - horiz_offset, pt.y -
vert_offset);
}
painter.fillPath(path, color);
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs