commit 1a8dddcaf6a4328b2126540d115660b62ec8d118
Author: Thibaut Cuvelier <[email protected]>
Date: Mon Oct 27 22:04:34 2025 +0100
Fix type-conversion warnings in TextMetrics.cpp.
---
src/TextMetrics.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp
index 4339c74765..c155885589 100644
--- a/src/TextMetrics.cpp
+++ b/src/TextMetrics.cpp
@@ -1608,7 +1608,7 @@ Row::Element const * TextMetrics::checkInsetHit(Row const
& row, int x) const
break;
if (xx + e.full_width() > x)
return (e.type == Row::INSET) ? &e : nullptr;
- xx += e.full_width();
+ xx += static_cast<int>(e.full_width());
}
return nullptr;
@@ -1636,7 +1636,7 @@ int TextMetrics::cursorX(CursorSlice const & sl,
if (pm.rows().empty())
return 0;
Row const & row = pm.getRow(sl.pos(), boundary);
- return row.pos2x(sl.pos(), boundary);
+ return static_cast<int>(row.pos2x(sl.pos(), boundary));
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs