diff options
| -rw-r--r-- | src/ViewStyle.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 4133fcc5f..c375bffab 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -363,7 +363,7 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) {  	// Ensure reasonable values: lines less than 1 pixel high will not work   	maxAscent = std::max(1.0, maxAscent + extraAscent);  	maxDescent = std::max(0.0, maxDescent + extraDescent); -	lineHeight = lround(maxAscent + maxDescent); +	lineHeight = static_cast<int>(std::lround(maxAscent + maxDescent));  	lineOverlap = lineHeight / 10;  	if (lineOverlap < 2)  		lineOverlap = 2;  | 
