From bc2d36db08361e1d888f409fe71aadc56c835325 Mon Sep 17 00:00:00 2001 From: codeimp Date: Mon, 23 Mar 2009 13:49:17 +0000 Subject: [PATCH] Fixed bug which causes a highlighted linedef to be copied even when a selection was made --- Source/BuilderModes/ClassicModes/LinedefsMode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/BuilderModes/ClassicModes/LinedefsMode.cs b/Source/BuilderModes/ClassicModes/LinedefsMode.cs index b9a20ccf..a3a49193 100644 --- a/Source/BuilderModes/ClassicModes/LinedefsMode.cs +++ b/Source/BuilderModes/ClassicModes/LinedefsMode.cs @@ -503,7 +503,7 @@ namespace CodeImp.DoomBuilder.BuilderModes public override bool OnCopyBegin() { // No selection made? But we have a highlight! - if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null)) + if((General.Map.Map.GetSelectedLinedefs(true).Count == 0) && (highlighted != null)) { // Make the highlight the selection highlighted.Selected = true; @@ -516,7 +516,7 @@ namespace CodeImp.DoomBuilder.BuilderModes public override bool OnPasteBegin() { // No selection made? But we have a highlight! - if((General.Map.Map.GetSelectedSectors(true).Count == 0) && (highlighted != null)) + if((General.Map.Map.GetSelectedLinedefs(true).Count == 0) && (highlighted != null)) { // Make the highlight the selection highlighted.Selected = true;