summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2011-10-13 11:30:57 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2011-10-13 11:30:57 +0200
commitd602bdeb65d0e4007a8a02e5c6d4b9b271287aa9 (patch)
tree082a7d4eb2173dd6c5682061d8a3792f9a839ee8 /client
parent3a7e8f62d40f9fc03fd212a71b0f9a9a8b9bd5fe (diff)
Fix bug in cavelist lookup.
Diffstat (limited to 'client')
-rw-r--r--client/luapraxisd.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/luapraxisd.cc b/client/luapraxisd.cc
index 1a92ea8..0696674 100644
--- a/client/luapraxisd.cc
+++ b/client/luapraxisd.cc
@@ -54,7 +54,7 @@ static int px_getcave(lua_State *L)
Patient patient = pxu->px->patient_get_by_cpr(cpr);
QVector<sogeord_t>::iterator i = patient.sogeord.begin();
while(i != patient.sogeord.end()) {
- QString cavesogeord = i->sogenr.mid(1, i->sogenr.size() - 1);
+ QString cavesogeord = i->sogenr;//.mid(1, i->sogenr.size() - 1);
QVector<cave_t> cave = pxu->px->diverse_get_cave(cavesogeord);
if(cave.size() == 1) {
if(cave[0].cave != "ANDET") cavelist.push_back(cave[0].cave);