summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2015-09-04 22:28:28 +0000
committerDavid Robillard <d@drobilla.net>2015-09-04 22:28:28 +0000
commit183195508e8f45bc571fac8955789e70570b8a1b (patch)
treeec9eb4ff7060b3b0beec0bebac2b26073e4189fd /src/gui
parent9cfc41a86b30d4b10cffd5404c91ce852ab6a1a8 (diff)
downloadingen-183195508e8f45bc571fac8955789e70570b8a1b.tar.gz
ingen-183195508e8f45bc571fac8955789e70570b8a1b.tar.bz2
ingen-183195508e8f45bc571fac8955789e70570b8a1b.zip
Fix various atom conversion issues.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5719 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/Port.cpp2
-rw-r--r--src/gui/RenameWindow.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index b66450ff..ca31e445 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -266,7 +266,7 @@ Port::build_uri_menu()
}
LilvNode* designation = lilv_new_uri(
- world->lilv_world(), designation_atom.ptr<char>());
+ world->lilv_world(), world->forge().str(designation_atom, false).c_str());
LilvNode* rdfs_range = lilv_new_uri(
world->lilv_world(), LILV_NS_RDFS "range");
diff --git a/src/gui/RenameWindow.cpp b/src/gui/RenameWindow.cpp
index d4e3b9a4..5020f6ef 100644
--- a/src/gui/RenameWindow.cpp
+++ b/src/gui/RenameWindow.cpp
@@ -116,7 +116,8 @@ RenameWindow::ok_clicked()
Raul::Path path = _object->path();
const Atom& name_atom = _object->get_property(uris.lv2_name);
- if (!label.empty() && (!name_atom.is_valid() || label != name_atom.ptr<char>())) {
+ if (!label.empty() && (name_atom.type() != uris.forge.String ||
+ label != name_atom.ptr<char>())) {
_app->set_property(Node::path_to_uri(path),
uris.lv2_name,
_app->forge().alloc(label));