X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvector.h;h=46baff80b1feec4489bc08eb41e7707c24cf1753;hb=eaf12afa6f6d98b64bec9dd9d55019e9bf3553a4;hp=61314f178442019c0dac275f2c4bd5ba30937838;hpb=bfcc4388320d55a365d6bc427d58f47f359d2ac3;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/vector.h b/synfig-core/trunk/src/synfig/vector.h index 61314f1..46baff8 100644 --- a/synfig-core/trunk/src/synfig/vector.h +++ b/synfig-core/trunk/src/synfig/vector.h @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -79,11 +80,11 @@ public: value_type & operator[](const int& i) - { return (&_x)[i] ; } + { return i?_y:_x; } const value_type & operator[](const int& i) const - { return (&_x)[i] ; } + { return i?_y:_x; } const Vector & operator+=(const Vector &rhs)