diff options
| author | senator <senator> | 2009-09-02 07:55:34 +0000 | 
|---|---|---|
| committer | senator <senator> | 2009-09-02 07:55:34 +0000 | 
| commit | a089a26387dd417c70d4ad9e2941f4ba82a09669 (patch) | |
| tree | 216286e5d183bec556646c1c87b7dafcb4565e05 | |
| parent | d0e2187581144437e1c4f604f4fb85bebad8547a (diff) | |
Keratometri ændret til 180 selvom specs siger 179. Toke siger det skal være 180
| -rw-r--r-- | server/xml/macros/keratometri-1.0.xml | 12 | 
1 files changed, 6 insertions, 6 deletions
| diff --git a/server/xml/macros/keratometri-1.0.xml b/server/xml/macros/keratometri-1.0.xml index c029316..a2a5dc6 100644 --- a/server/xml/macros/keratometri-1.0.xml +++ b/server/xml/macros/keratometri-1.0.xml @@ -21,11 +21,11 @@        rr2 = tonmb(getValue('keratometri.right.r2'))        rx1 = tonmb(getValue('keratometri.right.x1')) -      if ( rx1 > 0 and rx1 < 90 ) then +      if ( rx1 >= 0 and rx1 < 90 ) then          rx2 = rx1 + 90        end -      if ( rx1 >= 90 and rx1 < 180 ) then +      if ( rx1 >= 90 and rx1 <= 180 ) then          rx2 = rx1 - 90        end @@ -60,11 +60,11 @@        lr2 = tonmb(getValue('keratometri.left.r2'))        lx1 = tonmb(getValue('keratometri.left.x1')) -      if ( lx1 > 0 and lx1 < 90 ) then +      if ( lx1 >= 0 and lx1 < 90 ) then          lx2 = lx1 + 90        end -      if ( lx1 >= 90 and lx1 < 180 ) then +      if ( lx1 >= 90 and lx1 <= 180 ) then          lx2 = lx1 - 90        end @@ -152,14 +152,14 @@          return false        end      </script> -    <script language="lua" name="lt179gt0"> +    <script language="lua" name="lt180gt0">        if(value == '')        then          return false        end        value = string.gsub(value, ',', '.') -      if(tonumber(value) >= 0 and tonumber(value) <= 179) +      if(tonumber(value) >= 0 and tonumber(value) <= 180)        then          return true        else | 
