From 3a0f665c90ea645eaf56397dd873e2b8f0bcc38a Mon Sep 17 00:00:00 2001
From: marynate <mary.w.nate@gmail.com>
Date: Tue, 13 Jan 2015 17:16:56 +0800
Subject: [PATCH] Total rows of text edit was calculated wrong, fixed issue
 #842

---
 scene/gui/text_edit.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scene/gui/text_edit.cpp b/scene/gui/text_edit.cpp
index d589b930492..8855627bb4b 100644
--- a/scene/gui/text_edit.cpp
+++ b/scene/gui/text_edit.cpp
@@ -298,7 +298,7 @@ void TextEdit::_update_scrollbars() {
 	
 	int hscroll_rows = ((hmin.height-1)/get_row_height())+1;
 	int visible_rows = get_visible_rows();
-	int total_rows = text.size() * cache.line_spacing;
+	int total_rows = text.size();
 	
 	int vscroll_pixels = v_scroll->get_combined_minimum_size().width;
 	int visible_width = size.width - cache.style_normal->get_minimum_size().width;