diff -r d7d0708b1c60 -r 8be6ac05960b mapcenterobj.cpp --- a/mapcenterobj.cpp Tue Dec 04 12:32:59 2007 +0000 +++ b/mapcenterobj.cpp Wed Jan 16 15:45:18 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;