From 231826f96066f39732eadae8b5db1bb1cc22454b Mon Sep 17 00:00:00 2001
From: Julien Michel <julien.michel@orfeo-toolbox.org>
Date: Fri, 23 Oct 2015 13:24:56 +0200
Subject: [PATCH] ENH: Restored the OFTString ase in GetFieldAsInt (this code
 snippet got accidentally erased in last commits))

---
 Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx b/Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx
index 219b51fb1b..c4989caf6c 100644
--- a/Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx
+++ b/Modules/Core/VectorDataBase/src/otbVectorDataKeywordlist.cxx
@@ -198,7 +198,7 @@ VectorDataKeywordlist
           {
           return (int)(m_FieldList[i].second.Real);
           }
-        if (m_FieldList[i].first->GetType() == OFTString)
+        case OFTString:
           {
           std::istringstream is(m_FieldList[i].second.String);
           int value;
-- 
GitLab