aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-04 17:15:33 +0100
committerHanspeter Portner <dev@open-music-kontrollers.ch>2019-01-04 17:15:33 +0100
commitf96b0233f29ba674cedfba4cf8d4d31f8b18d710 (patch)
tree02db69530da5a6d4319e0e67d86701545da0d3a3
parent852f2069731585bf9f3e8690553d2765c9ecf0a5 (diff)
downloadcanvas_display.lv2-f96b0233f29ba674cedfba4cf8d4d31f8b18d710.tar.xz
ui: fix potentially uninitialized variable.
-rw-r--r--VERSION2
-rw-r--r--canvas_ui.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/VERSION b/VERSION
index fa4e50c..27db9c0 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.403
+0.1.405
diff --git a/canvas_ui.c b/canvas_ui.c
index 8ba88f3..fafd157 100644
--- a/canvas_ui.c
+++ b/canvas_ui.c
@@ -549,7 +549,7 @@ port_event(LV2UI_Handle instance, uint32_t index, uint32_t size,
W = h * handle->aspect_ratio;
H = h;
}
- else if(handle->aspect_ratio > 1.f)
+ else // handle->aspect_ratio > 1.f
{
W = w;
H = w / handle->aspect_ratio;