From 75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 5 Oct 2007 04:44:54 +0000 Subject: Fix connection serialisation. Do hidden graphviz render to /dev/null instead of /home/dave/test.graphviz. Oops. :) git-svn-id: http://svn.drobilla.net/lad/raul@823 a436a847-0d15-0410-975c-d299462d15a1 --- raul/RDFNode.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'raul') diff --git a/raul/RDFNode.hpp b/raul/RDFNode.hpp index 63b7a2e..cdc103b 100644 --- a/raul/RDFNode.hpp +++ b/raul/RDFNode.hpp @@ -52,11 +52,12 @@ public: librdf_node* get_node() const { return _node; } - operator bool() const { return (_node != NULL); } + operator bool() const { return (_world != NULL && _node != NULL); } const Node& operator=(const Node& other) { if (_node) librdf_free_node(_node); + _world = other._world; _node = (other._node) ? librdf_new_node_from_node(other._node) : NULL; return *this; } -- cgit v1.2.1