summaryrefslogtreecommitdiffstats
path: root/Project/Bus.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Project/Bus.cpp')
-rw-r--r--Project/Bus.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/Project/Bus.cpp b/Project/Bus.cpp
index 72d6412..dffe8fc 100644
--- a/Project/Bus.cpp
+++ b/Project/Bus.cpp
@@ -53,7 +53,7 @@ void Bus::Draw(wxPoint2DDouble translation, double scale) const
glRotated(m_angle, 0.0, 0.0, 1.0);
glTranslated(-m_position.m_x, -m_position.m_y, 0.0);
- glColor4dv(m_busColour->GetRGBA());
+ glColor4dv(m_busColour.GetRGBA());
DrawRectangle(m_position, m_width, m_height);
// Pop the old matrix back.
glPopMatrix();
@@ -186,3 +186,10 @@ bool Bus::ShowForm(wxWindow* parent, Element* element)
busForm->Destroy();
return false;
}
+
+Element* Bus::GetCopy()
+{
+ Bus* copy = new Bus();
+ *copy = *this;
+ return copy;
+}