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

gEDA-cvs: pcb.git: branch: master updated (980e2ae41c76dfd08e554850aca99105354c97be)



The branch, master has been updated
       via  980e2ae41c76dfd08e554850aca99105354c97be (commit)
      from  e6fc02c73c4884bb973abc98ccf511b711d43c5e (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
=========

 src/action.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)


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

commit 980e2ae41c76dfd08e554850aca99105354c97be
Author: harry <harry@harry-laptop.(none)>
Commit: harry <harry@harry-laptop.(none)>

    don't count one rat line twice when deleting them

:100644 100644 eac8d5e... ce7527f... M	src/action.c

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

commit 980e2ae41c76dfd08e554850aca99105354c97be
Author: harry <harry@harry-laptop.(none)>
Commit: harry <harry@harry-laptop.(none)>

    don't count one rat line twice when deleting them

diff --git a/src/action.c b/src/action.c
index eac8d5e..ce7527f 100644
--- a/src/action.c
+++ b/src/action.c
@@ -1516,9 +1516,12 @@ NotifyMode (void)
 		{
 		  if (PCB->RatOn)
 		    EraseRat ((RatTypePtr) ptr->Line);
-		  MoveObjectToRemoveUndoList (RATLINE_TYPE,
-					      ptr->Line, ptr->Line,
-					      ptr->Line);
+                  if (TEST_FLAG (RUBBERENDFLAG, ptr->Line))
+		    MoveObjectToRemoveUndoList (RATLINE_TYPE,
+					        ptr->Line, ptr->Line,
+					        ptr->Line);
+                  else
+                    TOGGLE_FLAG (RUBBERENDFLAG, ptr->Line); /* only remove line once */
 		  ptr++;
 		}
 	    }
@@ -3086,8 +3089,8 @@ ActionMode (int argc, char **argv, int x, int y)
 	      SaveMode ();
 	      saved_mode = True;
 	      SetMode (ARROW_MODE);
+	      NotifyMode ();
 	    }
-          NotifyMode ();
 	  break;
 #endif
 	case F_Text:




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