From fac474a727f8bf14aa01fcbaa0260287926ecff8 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Feb 2013 20:12:30 +0000 Subject: Fix crash when printing atoms with string types. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5050 a436a847-0d15-0410-975c-d299462d15a1 --- src/Forge.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Forge.cpp') diff --git a/src/Forge.cpp b/src/Forge.cpp index ffd87bbc..14d727d2 100644 --- a/src/Forge.cpp +++ b/src/Forge.cpp @@ -44,11 +44,11 @@ Forge::str(const Raul::Atom& atom) } else if (atom.type() == Bool) { ss << (atom.get() ? "true" : "false"); } else if (atom.type() == URI) { - ss << "<" << atom.get() << ">"; + ss << "<" << atom.ptr() << ">"; } else if (atom.type() == URID) { ss << "<" << _map.unmap_uri(atom.get()) << ">"; } else if (atom.type() == String) { - ss << "\"" << atom.get() << "\""; + ss << "\"" << atom.ptr() << "\""; } return ss.str(); } -- cgit v1.2.1