summaryrefslogtreecommitdiffstats
path: root/Project/PowerElement.cpp
diff options
context:
space:
mode:
authorThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-13 00:01:53 -0300
committerThales Lima Oliveira <thaleslima.ufu@gmail.com>2020-06-13 00:01:53 -0300
commit6c0e98a2727d07e1fbb38b78c27d68e98ad09465 (patch)
tree12764ca986c9a1943bc2012b0cc751471773f6ee /Project/PowerElement.cpp
parent196389a70ef3a03aa8764b9532812a17dd55014b (diff)
downloadPSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.tar.gz
PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.tar.xz
PSP.git-6c0e98a2727d07e1fbb38b78c27d68e98ad09465.zip
Device context implemented
Diffstat (limited to 'Project/PowerElement.cpp')
-rw-r--r--Project/PowerElement.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Project/PowerElement.cpp b/Project/PowerElement.cpp
index ffb920e..a936797 100644
--- a/Project/PowerElement.cpp
+++ b/Project/PowerElement.cpp
@@ -242,7 +242,7 @@ bool PowerElement::OpenCADProperties(rapidxml::xml_node<>* elementNode, std::vec
// If the opened power element has no parent, set up the basics CAD properties of the element manually, otherwise
// just class method AddParent to calculate properly.
if(parentID == -1) {
- m_parentList.push_back(NULL);
+ m_parentList.push_back(nullptr);
m_pointList.push_back(wxPoint2DDouble(nodePosX, nodePosY));
m_pointList.push_back(wxPoint2DDouble(nodePosX, nodePosY));
m_pointList.push_back(m_position + wxPoint2DDouble(0.0, -m_height / 2.0 - 10.0));