summaryrefslogtreecommitdiffstats
path: root/Project/MainFrame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/MainFrame.cpp')
-rw-r--r--Project/MainFrame.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Project/MainFrame.cpp b/Project/MainFrame.cpp
index 3b7e230..aedf7a8 100644
--- a/Project/MainFrame.cpp
+++ b/Project/MainFrame.cpp
@@ -229,8 +229,10 @@ void MainFrame::OnAddElementsClick(wxCommandEvent& event)
break;
case ID_ADDMENU_LINE:
{
- Line* newLine = new Line();
+ Line* newLine =
+ new Line(wxString::Format(_("Line %d"), workspace->GetElementNumber(ID_LINE)));
elementList.push_back(newLine);
+ workspace->IncrementElementNumber(ID_LINE);
statusBarText = _("Insert Line: Click on two buses, ESC to cancel.");
newElement = true;
}