From 11380a5deb071b647e10dbd51e64340e50da801d Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Sun, 8 Jun 2014 20:31:11 -0700 Subject: Really display liters with script el In commit 125ddd955c04 ("Display liters with script el") Robert only fixed the C routine we use to show units. Strangely, we had a separately implemented C++ function as well. Instead of implementing this in two spots I now simply have the C++ function use the C function to do the actual work and then wrap this into an easier to use (from UI code) QString output. Signed-off-by: Dirk Hohndel --- qt-ui/models.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'qt-ui') diff --git a/qt-ui/models.cpp b/qt-ui/models.cpp index 9b92f8197..496c32cdb 100644 --- a/qt-ui/models.cpp +++ b/qt-ui/models.cpp @@ -538,7 +538,7 @@ volume_t string_to_volume(const char *str, pressure_t workp) QString local_cuft = CylindersModel::tr("cuft"); volume_t volume; - if (rest.startsWith("l") || rest.startsWith(local_l)) + if (rest.startsWith("l") || rest.startsWith("ℓ") || rest.startsWith(local_l)) goto l; if (rest.startsWith("cuft") || rest.startsWith(local_cuft)) goto cuft; -- cgit v1.2.3-70-g09d2