libcvd-members
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libcvd-members] libcvd/cvd image.h [subimage2]


From: Edward Rosten
Subject: [libcvd-members] libcvd/cvd image.h [subimage2]
Date: Thu, 29 Jun 2006 23:58:19 +0000

CVSROOT:        /cvsroot/libcvd
Module name:    libcvd
Branch:         subimage2
Changes by:     Edward Rosten <edrosten>        06/06/29 23:58:19

Modified files:
        cvd            : image.h 

Log message:
        Were you getting segfaults with iterators and const sub_images, but not
        non_const sub images? I was...

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/libcvd/cvd/image.h?cvsroot=libcvd&only_with_tag=subimage2&r1=1.20.2.6&r2=1.20.2.7

Patches:
Index: image.h
===================================================================
RCS file: /cvsroot/libcvd/libcvd/cvd/image.h,v
retrieving revision 1.20.2.6
retrieving revision 1.20.2.7
diff -u -b -r1.20.2.6 -r1.20.2.7
--- image.h     29 Jun 2006 18:58:20 -0000      1.20.2.6
+++ image.h     29 Jun 2006 23:58:19 -0000      1.20.2.7
@@ -297,7 +297,7 @@
         inline const T* operator[](int row) const
         {
             CVD_IMAGE_ASSERT(in_image(ImageRef(0,row)), 
ImageError::AccessOutsideImage);
-            return my_data+row*my_size.x;
+            return my_data+row*my_stride;
         }
 
                /// Given a pointer, this returns the image position as an 
ImageRef




reply via email to

[Prev in Thread] Current Thread [Next in Thread]