diff --git a/Source/Core/Map/Linedef.cs b/Source/Core/Map/Linedef.cs
index 67f25ffe16b8c539ea99acba54374c3ca512721b..1cecabcbca2ab6b7d0fe04e072258b17bd56071e 100644
--- a/Source/Core/Map/Linedef.cs
+++ b/Source/Core/Map/Linedef.cs
@@ -547,11 +547,17 @@ namespace CodeImp.DoomBuilder.Map
 		// This flips the linedef's vertex attachments
 		public void FlipVertices()
 		{
+			// make sure the start/end vertices are not automatically
+			// deleted if they do not belong to any other line
+			General.Map.Map.AutoRemove = false;
+
 			// Flip vertices
 			Vertex oldstart = start;
 			Vertex oldend = end;
 			SetStartVertex(oldend);
 			SetEndVertex(oldstart);
+
+			General.Map.Map.AutoRemove = true;
 			
 			// For drawing, the interior now lies on the other side
 			frontinterior = !frontinterior;