s/contained/contains/ and end (?) the expenditure of hot air ;-)

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7641 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2003-09-02 20:42:28 +00:00
parent 0769f8d599
commit 50d4d2bd7e
5 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,8 @@
2003-09-02 Angus Leeming <leeming@lyx.org>
* box.C (contains): renamed from 'contained' after a fantastic
amount of hot air.
2003-09-02 John Levon <levon@movementarian.org> 2003-09-02 John Levon <levon@movementarian.org>
* BufferView.C: * BufferView.C:

View File

@ -24,7 +24,7 @@ Box::Box(int x1_, int x2_, int y1_, int y2_) :
{} {}
bool Box::contained(int x, int y) bool Box::contains(int x, int y)
{ {
return (x1 < x && x2 > x && y1 < y && y2 > y); return (x1 < x && x2 > x && y1 < y && y2 > y);
} }

View File

@ -36,7 +36,7 @@ struct Box {
* the box. Check is exclusive (point on a border * the box. Check is exclusive (point on a border
* returns false). * returns false).
*/ */
bool contained(int x, int y); bool contains(int x, int y);
}; };

View File

@ -278,7 +278,7 @@ int InsetCollapsable::docbook(Buffer const & buf, ostream & os, bool mixcont) co
bool InsetCollapsable::hitButton(FuncRequest const & cmd) const bool InsetCollapsable::hitButton(FuncRequest const & cmd) const
{ {
return button_dim.contained(cmd.x, cmd.y); return button_dim.contains(cmd.x, cmd.y);
} }

View File

@ -125,7 +125,7 @@ namespace {
cur.y() + inset->descent() cur.y() + inset->descent()
); );
if (!b.contained(x, y)) { if (!b.contains(x, y)) {
lyxerr[Debug::GUI] << "Missed inset at x,y " lyxerr[Debug::GUI] << "Missed inset at x,y "
<< x << ',' << y << x << ',' << y
<< " box " << b << endl; << " box " << b << endl;