From fa3fab2c9ff032b9c2cdaf9e3e720b485354cfbb Mon Sep 17 00:00:00 2001 From: Charles Otto Date: Fri, 19 Apr 2013 15:16:38 -0400 Subject: [PATCH] Fix an issue with File::label remapping numeric 'subject' unnecessarily --- openbr/openbr_plugin.cpp | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 7e83f9b..18c1688 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -183,6 +183,11 @@ float File::label() const if (s.isNull()) return -1; const QString subject = s.toString(); + + bool is_num = false; + float num = subject.toFloat(&is_num); + if (is_num) return num; + static QMutex mutex; QMutexLocker mutexLocker(&mutex); if (!Globals->subjects.contains(subject)) -- libgit2 0.21.4