Commit 01c94783 authored by Emmanuel Christophe's avatar Emmanuel Christophe
Browse files

BUG: fixing fix of bug #28

parent 0f312372
......@@ -164,13 +164,13 @@ class ImageWidgetBase
/** Get the buffer index from the iterator position and the buffered region */
inline unsigned int GetBufferIndex(const IndexType& iteratorIndex)
{
return (iteratorIndex[1]-m_BufferedRegion.GetIndex()[1])*4*m_BufferedRegion.GetSize()[0]
+ 4*(iteratorIndex()[0]-m_BufferedRegion.GetIndex()[0]);
return (iteratorIndex[1]-m_BufferedRegion.GetIndex()[1])*4*m_BufferedRegion.GetSize()[0]
+ 4*(iteratorIndex[0]-m_BufferedRegion.GetIndex()[0]);
}
inline unsigned int GetRevertedBufferIndex(const IndexType& iteratorIndex)
{
return (m_BufferedRegion.GetSize()[1]-1+m_BufferedRegion.GetIndex()[1]-iteratorIndex[1])*4*m_BufferedRegion.GetSize()[0]
return (m_BufferedRegion.GetSize()[1]-1+m_BufferedRegion.GetIndex()[1]-iteratorIndex[1])*4*m_BufferedRegion.GetSize()[0]
+ 4*(iteratorIndex[0]-m_BufferedRegion.GetIndex()[0]);
}
protected:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment