diff --git a/Code/Visualization/otbDragFullWindowActionHandler.h b/Code/Visualization/otbDragFullWindowActionHandler.h
index 269f9daa39a1610177d2d68870151d3bc7997786..d57035220e7fba7561866b1808ac9a9086c0dc08 100644
--- a/Code/Visualization/otbDragFullWindowActionHandler.h
+++ b/Code/Visualization/otbDragFullWindowActionHandler.h
@@ -90,7 +90,7 @@ public:
 
           // Compute the origin and the size of the visible region
           IndexType indexBegin, indexEnd;
-          typedef IndexType::IndexValueType IndexValueType;
+          typedef typename IndexType::IndexValueType IndexValueType;
           indexBegin[0] = static_cast<IndexValueType> (m_Model->GetExtractRegion().GetIndex()[0] + m_MoveX);
           indexBegin[1] = static_cast<IndexValueType> (m_Model->GetExtractRegion().GetIndex()[1] + m_MoveY);
           indexEnd[0] = indexBegin[0] + m_Model->GetExtractRegion().GetSize()[0];