From 0c97cabe188d08a401c28bfe8fe9eae35acc1414 Mon Sep 17 00:00:00 2001 From: Cary R Date: Thu, 17 Dec 2009 19:23:22 -0800 Subject: [PATCH] Use the correct line information in crop_to_width() This was using its own information instead of the input nets information. --- pad_to_width.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pad_to_width.cc b/pad_to_width.cc index a63c75b15..b78f8ff2c 100644 --- a/pad_to_width.cc +++ b/pad_to_width.cc @@ -1,5 +1,5 @@ /* - * Copyright (c) 1999-2008 Stephen Williams (steve@icarus.com) + * Copyright (c) 1999-2009 Stephen Williams (steve@icarus.com) * * This source code is free software; you can redistribute it * and/or modify it in source code form under the terms of the GNU @@ -134,7 +134,7 @@ NetNet*crop_to_width(Design*des, NetNet*net, unsigned wid) NetNet::WIRE, wid); tmp->data_type(net->data_type()); tmp->local_flag(true); - tmp->set_line(*tmp); + tmp->set_line(*net); connect(ps->pin(0), tmp->pin(0)); return tmp;