[LyX/master] Avoid a warning

Jean-Marc Lasgouttes lasgouttes at lyx.org
Tue May 12 15:21:07 UTC 2020


commit e52af398649d33825cd41d63db83b41d770ce88e
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date:   Tue May 12 17:42:50 2020 +0200

    Avoid a warning
---
 src/TextMetrics.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp
index c92af02..d908ef3 100644
--- a/src/TextMetrics.cpp
+++ b/src/TextMetrics.cpp
@@ -235,7 +235,7 @@ bool TextMetrics::metrics(MetricsInfo & mi, Dimension & dim, int min_width,
 	//	<< " maxWidth: " << max_width_ << "\nfont: " << mi.base.font << endl;
 
 	bool changed = false;
-	unsigned int h = 0;
+	int h = 0;
 	for (pit_type pit = 0; pit != npar; ++pit) {
 		// create rows, but do not set alignment yet
 		changed |= redoParagraph(pit, false);


More information about the lyx-cvs mailing list