From f6718ac24553ac99bf90f99a33543d6d6b96999b Mon Sep 17 00:00:00 2001 From: Thales1330 Date: Fri, 30 Sep 2016 16:58:37 -0300 Subject: Line form implemented, voltages corrections under implementation --- Project/MainFrame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Project/MainFrame.cpp') 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; } -- cgit