commit ab5fd65384bac81108895afd538bbc0fe3db996b
Author: Juergen Spitzmueller <[email protected]>
Date: Fri Feb 20 15:54:06 2026 +0100
Rename another shadowing int
---
src/BufferView.cpp | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index 1d93ba827c..0dda44b131 100644
--- a/src/BufferView.cpp
+++ b/src/BufferView.cpp
@@ -3709,18 +3709,18 @@ void BufferView::buildCaretGeometry(bool complet, Point
shift)
// The completion triangle |> (if needed)
if (complet) {
int const m = p.y + dim.height() / 2;
- int const d = dim.height() / 8;
+ int const dd = dim.height() / 8;
// offset for slanted carret
- int const sx = iround((dim.asc - (dim.height() / 2 - d)) *
slope);
+ int const sx = iround((dim.asc - (dim.height() / 2 - dd)) *
slope);
// starting position x
int const xx = p.x + dir * dim.wid + sx;
cg.shapes.push_back(
- {{xx, m - d},
- {xx + dir * d, m},
- {xx, m + d},
- {xx, m + d - dim.wid},
- {xx + dir * d - dim.wid, m},
- {xx, m - d + dim.wid}}
+ {{xx, m - dd},
+ {xx + dir * dd, m},
+ {xx, m + dd},
+ {xx, m + dd - dim.wid},
+ {xx + dir * dd - dim.wid, m},
+ {xx, m - dd + dim.wid}}
);
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs