[anjal] Set the height only if its valid.



commit e56af8457fadf45e05c058119733121981aa88d2
Author: Srinivasa Ragavan <sragavan novell com>
Date:   Wed Apr 22 00:40:37 2009 +0530

    Set the height only if its valid.
---
 src/em-webkit-stream.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/em-webkit-stream.c b/src/em-webkit-stream.c
index 79016d0..93e2268 100644
--- a/src/em-webkit-stream.c
+++ b/src/em-webkit-stream.c
@@ -112,7 +112,9 @@ static int
 emws_sync_close(CamelStream *stream)
 {
 	EMWebKitStream *emws = (EMWebKitStream *)stream;
-	gtk_widget_set_size_request (emws->view, -1, webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)));
+	if (webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)))
+		gtk_widget_set_size_request (emws->view, -1, webkit_web_frame_get_height(webkit_web_view_get_main_frame(emws->view)));
+
 	return 0;
 }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]