File: order_boolean_operation

package info (click to toggle)
octave-vrml 1.0.13-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,380 kB
  • sloc: makefile: 52
file content (18 lines) | stat: -rw-r--r-- 516 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: Fix the order of terms in boolean operation
Author: Sebastian Rühl
Bug-Ubuntu: https://launchpad.net/bugs/787412
Reviewed-By: Rafael Laboissiere <rafael@debian.org>
Forwarded: Not-needed
Last-Update: 2012-05-31

--- octave-vrml-1.0.11.orig/inst/vrml_material.m
+++ octave-vrml-1.0.11/inst/vrml_material.m
@@ -43,7 +43,7 @@ if emit && !isnan (ec)
 else
   se = "";
 end
-if tran && ! isnan (tran)
+if ! isnan (tran) && tran
   st = sprintf ("              transparency %8.3g\n",tran);
 else
   st = "";