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

gEDA-cvs: gaf.git: branch: master updated (1.5.0-20080706-98-g4c15bbc)



The branch, master has been updated
       via  4c15bbcf06a1840b410f33645d658322c5a38253 (commit)
      from  a504567fa312888bd3e467f01f68eadaf6c0440d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 libgeda/src/m_basic.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


=================
 Commit Messages
=================

commit 4c15bbcf06a1840b410f33645d658322c5a38253
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date:   Thu Aug 14 18:55:55 2008 +0100

    Don't crash on zero snap grid spacing [2026598]
    
    If snap grid spacing is set to zero, behave the same as if snap is
    disabled.

:100644 100644 946dddc... b0b5ea9... M	libgeda/src/m_basic.c

=========
 Changes
=========

commit 4c15bbcf06a1840b410f33645d658322c5a38253
Author: Peter TB Brett <peter@xxxxxxxxxxxxx>
Date:   Thu Aug 14 18:55:55 2008 +0100

    Don't crash on zero snap grid spacing [2026598]
    
    If snap grid spacing is set to zero, behave the same as if snap is
    disabled.

diff --git a/libgeda/src/m_basic.c b/libgeda/src/m_basic.c
index 946dddc..b0b5ea9 100644
--- a/libgeda/src/m_basic.c
+++ b/libgeda/src/m_basic.c
@@ -206,7 +206,7 @@ int snap_grid(TOPLEVEL *toplevel, int input)
   int p, m, n;
   int sign, value, snap_grid;
 	
-  if (!toplevel->snap) {
+  if (!toplevel->snap || (toplevel->snap_size <= 0)) {
     return(input);
   }
 




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs