From 0ad9d460681ad282bc8c40092f227f1c34a1229f Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 7 Jan 2015 21:27:53 +0100 Subject: [PATCH] Fix some warnings --- src/TextMetrics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 874cb17607..d3523ae47e 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -619,16 +619,16 @@ void TextMetrics::computeRowMetrics(pit_type const pit, row.dimension().wid = width; } else if (is_rtl) { row.dimension().wid = width; - row.left_margin += w; + row.left_margin += int(w); } break; } case LYX_ALIGN_RIGHT: - row.left_margin += w; + row.left_margin += int(w); break; case LYX_ALIGN_CENTER: row.dimension().wid = width - int(w / 2); - row.left_margin += w / 2; + row.left_margin += int(w / 2); break; case LYX_ALIGN_LEFT: case LYX_ALIGN_NONE: