From b36bb32cf4b830391bb16cb5e2bb320ad2943b9f Mon Sep 17 00:00:00 2001
From: edgrif <edgrif>
Date: Wed, 10 Feb 2010 10:10:17 +0000
Subject: [PATCH] fix small bug in mark setting, mark coords are zero-based,
 not sequence-based.

---
 src/zmapWindow/items/zmapWindowContainerBlock.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/zmapWindow/items/zmapWindowContainerBlock.c b/src/zmapWindow/items/zmapWindowContainerBlock.c
index ef8a315bb..8eba6e6d3 100755
--- a/src/zmapWindow/items/zmapWindowContainerBlock.c
+++ b/src/zmapWindow/items/zmapWindowContainerBlock.c
@@ -27,9 +27,9 @@
  *
  * Exported functions: See XXXXXXXXXXXXX.h
  * HISTORY:
- * Last edited: Jan 22 12:17 2010 (edgrif)
+ * Last edited: Feb 10 10:09 2010 (edgrif)
  * Created: Mon Jul 30 13:09:33 2007 (rds)
- * CVS info:   $Id: zmapWindowContainerBlock.c,v 1.8 2010-01-22 13:59:06 edgrif Exp $
+ * CVS info:   $Id: zmapWindowContainerBlock.c,v 1.9 2010-02-10 10:10:17 edgrif Exp $
  *-------------------------------------------------------------------
  */
 
@@ -471,7 +471,7 @@ static gboolean maximise_mark_items_cb(ZMapWindowContainerGroup group_updated,
 
   zMapAssert(group_level == ZMAPCONTAINER_LEVEL_BLOCK);
 
-  if(container_block->mark.start > 0.0 && container_block->mark.end > 0.0)
+  if (container_block->mark.start >= 0.0 && container_block->mark.end >= 0.0)
     {
       if(container_block->mark.top_item)
 	{
-- 
GitLab