[gimp] map-object: fix bogus if()-statement.
- From: Simon Budig <simon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] map-object: fix bogus if()-statement.
- Date: Mon, 30 Jan 2017 15:44:41 +0000 (UTC)
commit 53d4ad7c28b213ea1bdb443155eef82582e584b3
Author: Simon Budig <simon budig de>
Date: Mon Jan 30 16:26:59 2017 +0100
map-object: fix bogus if()-statement.
plug-ins/map-object/arcball.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/map-object/arcball.c b/plug-ins/map-object/arcball.c
index 93e1d73..1f509d4 100644
--- a/plug-ins/map-object/arcball.c
+++ b/plug-ins/map-object/arcball.c
@@ -286,7 +286,12 @@ V3_Unit (HVect v)
static HVect u = {0, 0, 0, 0};
double vlen = sqrt(V3_Norm(v));
- if (vlen != 0.0) u.x = v.x/vlen; u.y = v.y/vlen; u.z = v.z/vlen;
+ if (vlen != 0.0)
+ {
+ u.x = v.x/vlen;
+ u.y = v.y/vlen;
+ u.z = v.z/vlen;
+ }
return (u);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]