aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector_nk.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2018-05-10 09:36:18 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2018-05-10 09:36:47 +0200
commit68494153e870264bcfd4633fd67a25c5993dc0cc (patch)
treed91167be1257eeaad35441e44928ca57685db4aa /atom_inspector_nk.c
parentfbf49a3e193f66c4749ad3fc245607b45a21914f (diff)
downloadsherlock.lv2-68494153e870264bcfd4633fd67a25c5993dc0cc.tar.xz
nk: fix pretty ttl rendering.
Diffstat (limited to 'atom_inspector_nk.c')
-rw-r--r--atom_inspector_nk.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/atom_inspector_nk.c b/atom_inspector_nk.c
index 6f6ccd2..18c578d 100644
--- a/atom_inspector_nk.c
+++ b/atom_inspector_nk.c
@@ -317,7 +317,6 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
_toggle(handle, handle->urid.pretty, handle->state.pretty, true);
handle->ttl_dirty = true;
- sratom_set_pretty_numbers(handle->sratom, handle->state.pretty);
}
nk_label(ctx, "pretty", NK_TEXT_LEFT);
@@ -348,6 +347,8 @@ _atom_inspector_expose(struct nk_context *ctx, struct nk_rect wbounds, void *dat
const LV2_Atom *atom = handle->selected;
if(handle->ttl_dirty && atom)
{
+ sratom_set_pretty_numbers(handle->sratom, handle->state.pretty);
+
char *ttl = _sratom_to_turtle(handle->sratom, handle->unmap,
handle->base_uri, NULL, NULL,
atom->type, atom->size, LV2_ATOM_BODY_CONST(atom));