summaryrefslogtreecommitdiffstats
path: root/raul/RDFNode.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-10-05 04:44:54 +0000
committerDavid Robillard <d@drobilla.net>2007-10-05 04:44:54 +0000
commit75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf (patch)
treea00ffd4584f45df8a6ff9212fcc46021a9efe1ec /raul/RDFNode.hpp
parent802fbfcc46f878f22d1b618baf04889a26d58da0 (diff)
downloadraul-75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf.tar.gz
raul-75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf.tar.bz2
raul-75f1691ccbb67ec5c718c28fbdedf8dbcc5912bf.zip
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
Diffstat (limited to 'raul/RDFNode.hpp')
-rw-r--r--raul/RDFNode.hpp3
1 files changed, 2 insertions, 1 deletions
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;
}