mapcenterobj.cpp
changeset 650 65c5a0c28d20
parent 628 d7d0708b1c60
child 661 6a5e2c27f8a4
     1.1 --- a/mapcenterobj.cpp	Tue Dec 04 12:32:59 2007 +0000
     1.2 +++ b/mapcenterobj.cpp	Tue Jan 15 10:54:41 2008 +0000
     1.3 @@ -1,7 +1,8 @@
     1.4  #include <QDateTime>
     1.5  
     1.6 +#include "floatimageobj.h"
     1.7 +#include "geometry.h"
     1.8  #include "mapcenterobj.h"
     1.9 -#include "floatimageobj.h"
    1.10  
    1.11  /////////////////////////////////////////////////////////////////
    1.12  // MapCenterObj
    1.13 @@ -106,11 +107,11 @@
    1.14  		if (lmo!= NULL) return lmo;
    1.15  	}
    1.16  	// is p in MapCenter?
    1.17 -	if (inBox (p) && (this != excludeLMO) ) return this;
    1.18 +	if (inBox (p,clickBox) && (this != excludeLMO) ) return this;
    1.19  
    1.20  	// Search float images
    1.21  	for (int i=0; i<floatimage.size(); ++i)
    1.22 -		if (floatimage.at(i)->inBox(p) && (floatimage.at(i) != excludeLMO) && floatimage.at(i)->getParObj()!= excludeLMO) return floatimage.at(i);
    1.23 +		if (inBox(p,floatimage.at(i)->getClickBox()) && (floatimage.at(i) != excludeLMO) && floatimage.at(i)->getParObj()!= excludeLMO) return floatimage.at(i);
    1.24  
    1.25  	// nothing found
    1.26  	return NULL;