Fixed trailing \n reporting extra text height
diff --git a/imgui.cpp b/imgui.cpp
index 0e0dc34..d24436c 100644
--- a/imgui.cpp
+++ b/imgui.cpp
@@ -5079,7 +5079,7 @@
 			text_size.y += line_height;
 			line_width = 0;
 		}
-		if (const FntGlyph* glyph = FindGlyph((unsigned short)c))
+		else if (const FntGlyph* glyph = FindGlyph((unsigned short)c))
 		{
 			const float char_width = (glyph->XAdvance + Info->SpacingHoriz) * scale;
 			//const float char_extend = (glyph->XOffset + glyph->Width * scale);