From 66e52b855d7a32508855320cb4692f937158b244 Mon Sep 17 00:00:00 2001
From: rds <rds>
Date: Wed, 1 Apr 2009 15:50:33 +0000
Subject: [PATCH] unset deferred flag on styles correctly

---
 src/zmapView/zmapView.c | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/zmapView/zmapView.c b/src/zmapView/zmapView.c
index 8697cab1b..9a9bba4bf 100755
--- a/src/zmapView/zmapView.c
+++ b/src/zmapView/zmapView.c
@@ -27,9 +27,9 @@
  *              
  * Exported functions: See ZMap/zmapView.h
  * HISTORY:
- * Last edited: Mar 20 12:44 2009 (edgrif)
+ * Last edited: Mar 24 09:02 2009 (rds)
  * Created: Thu May 13 15:28:26 2004 (edgrif)
- * CVS info:   $Id: zmapView.c,v 1.153 2009-03-20 12:44:49 edgrif Exp $
+ * CVS info:   $Id: zmapView.c,v 1.154 2009-04-01 15:50:33 rds Exp $
  *-------------------------------------------------------------------
  */
 
@@ -2077,7 +2077,10 @@ static gboolean processDataRequests(ZMapViewConnection view_con, ZMapServerReqAn
 	/* For dynamic loading the styles need to be set to load the features.*/
 	if (connect_data->dynamic_loading)
 	  {
-	    g_datalist_foreach(&(zmap_view->orig_styles), unsetDeferredLoadStylesCB, NULL) ;
+	    gboolean is_complete_sequence = FALSE;
+
+	    if(is_complete_sequence)
+	      g_datalist_foreach(&(zmap_view->orig_styles), unsetDeferredLoadStylesCB, NULL) ;
 
 	    g_datalist_foreach(&(get_styles->styles_out), unsetDeferredLoadStylesCB, NULL) ;
 	  }
-- 
GitLab