-
Notifications
You must be signed in to change notification settings - Fork 74
v0.2.50..v0.2.51 changeset Node.cpp
Garret Voltz edited this page Jan 15, 2020
·
1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/elements/Node.cpp b/hoot-core/src/main/cpp/hoot/core/elements/Node.cpp
index dde5bb6..7470cdf 100644
--- a/hoot-core/src/main/cpp/hoot/core/elements/Node.cpp
+++ b/hoot-core/src/main/cpp/hoot/core/elements/Node.cpp
@@ -84,6 +84,12 @@ Envelope* Node::getEnvelope(const std::shared_ptr<const ElementProvider>& /*ep*/
return new Envelope(getX(), getX(), getY(), getY());
}
+const Envelope& Node::getEnvelopeInternal(const std::shared_ptr<const ElementProvider>& /*ep*/) const
+{
+ _cachedEnvelope = Envelope(getX(), getX(), getY(), getY());
+ return _cachedEnvelope;
+}
+
void Node::setX(double x)
{
_nodeData.setX(x);