diff -r 6b7b49e367b8 -r 687833b29c4e mapcenterobj.cpp --- a/mapcenterobj.cpp Mon Jan 07 14:52:51 2008 +0000 +++ b/mapcenterobj.cpp Mon Jan 14 16:26:59 2008 +0000 @@ -1,7 +1,8 @@ #include +#include "floatimageobj.h" +#include "geometry.h" #include "mapcenterobj.h" -#include "floatimageobj.h" ///////////////////////////////////////////////////////////////// // MapCenterObj @@ -106,11 +107,11 @@ if (lmo!= NULL) return lmo; } // is p in MapCenter? - if (inBox (p) && (this != excludeLMO) ) return this; + if (inBox (p,clickBox) && (this != excludeLMO) ) return this; // Search float images for (int i=0; iinBox(p) && (floatimage.at(i) != excludeLMO) && floatimage.at(i)->getParObj()!= excludeLMO) return floatimage.at(i); + if (inBox(p,floatimage.at(i)->getClickBox()) && (floatimage.at(i) != excludeLMO) && floatimage.at(i)->getParObj()!= excludeLMO) return floatimage.at(i); // nothing found return NULL;