subptr() should subtract from the pointer, not add to it.
[synfig.git] / ETL / trunk / ETL / _pen.h
index 1986b45..aa6bfab 100644 (file)
@@ -1,7 +1,7 @@
 /*! ========================================================================
 ** Extended Template Library
 ** Pen Template Class Implementation
-** $Id: _pen.h,v 1.1.1.1 2005/01/04 01:31:48 darco Exp $
+** $Id$
 **
 ** Copyright (c) 2002 Robert B. Quattlebaum Jr.
 **
@@ -154,7 +154,7 @@ private:
 
        void subptr(int nbytes)
        {
-               data_ = (pointer)((char*)data_ + nbytes);
+               data_ = (pointer)((char*)data_ - nbytes);
        }
 
 public: