diff options
Diffstat (limited to 'server/xml/macros/keratometri-1.0.xml')
-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 |