summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsenator <senator>2009-09-02 07:55:34 +0000
committersenator <senator>2009-09-02 07:55:34 +0000
commita089a26387dd417c70d4ad9e2941f4ba82a09669 (patch)
tree216286e5d183bec556646c1c87b7dafcb4565e05
parentd0e2187581144437e1c4f604f4fb85bebad8547a (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.xml12
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 &gt; 0 and rx1 &lt; 90 ) then
+ if ( rx1 &gt;= 0 and rx1 &lt; 90 ) then
rx2 = rx1 + 90
end
- if ( rx1 &gt;= 90 and rx1 &lt; 180 ) then
+ if ( rx1 &gt;= 90 and rx1 &lt;= 180 ) then
rx2 = rx1 - 90
end
@@ -60,11 +60,11 @@
lr2 = tonmb(getValue('keratometri.left.r2'))
lx1 = tonmb(getValue('keratometri.left.x1'))
- if ( lx1 &gt; 0 and lx1 &lt; 90 ) then
+ if ( lx1 &gt;= 0 and lx1 &lt; 90 ) then
lx2 = lx1 + 90
end
- if ( lx1 &gt;= 90 and lx1 &lt; 180 ) then
+ if ( lx1 &gt;= 90 and lx1 &lt;= 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) &gt;= 0 and tonumber(value) &lt;= 179)
+ if(tonumber(value) &gt;= 0 and tonumber(value) &lt;= 180)
then
return true
else