From 2e09405287ccfdebfe89b2a663d10315cdf1559d Mon Sep 17 00:00:00 2001 From: Otmane Lahlou <otmane.lahlou@c-s.fr> Date: Tue, 14 Sep 2010 10:12:44 +0200 Subject: [PATCH] ENH : status modified when setting a different gridSize --- .../Projections/otbPhysicalToRPCSensorModelImageFilter.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Code/Projections/otbPhysicalToRPCSensorModelImageFilter.h b/Code/Projections/otbPhysicalToRPCSensorModelImageFilter.h index 17579714f6..955e6da03e 100644 --- a/Code/Projections/otbPhysicalToRPCSensorModelImageFilter.h +++ b/Code/Projections/otbPhysicalToRPCSensorModelImageFilter.h @@ -101,7 +101,14 @@ public: /** Set Grid size with an unsigned int parmeter*/ void SetGridSize(unsigned int inSize) { - m_GridSize.Fill(inSize); + SizeType iSize; + iSize.Fill(inSize); + + if(m_GridSize != iSize) + { + m_GridSize = iSize; + this->Modified(); + } } /** Reimplement the method Modified() */ -- GitLab