branchobj.cpp
changeset 651 1e51ba080947
parent 638 3436b8eb3d9b
child 654 10bd509b235c
     1.1 --- a/branchobj.cpp	Mon Jan 07 14:52:49 2008 +0000
     1.2 +++ b/branchobj.cpp	Tue Jan 15 13:06:59 2008 +0000
     1.3 @@ -1,6 +1,7 @@
     1.4  #include "branchobj.h"
     1.5  
     1.6  // #include "texteditor.h"
     1.7 +#include "geometry.h"
     1.8  #include "mapeditor.h"
     1.9  #include "mainwindow.h"
    1.10  #include "misc.h"
    1.11 @@ -690,12 +691,12 @@
    1.12  	
    1.13  
    1.14  	// Search myself
    1.15 -    if (inBox (p) && (this != excludeLMO) && isVisibleObj() ) 
    1.16 +    if (inBox (p,clickBox) && (this != excludeLMO) && isVisibleObj() ) 
    1.17  		return this;
    1.18  
    1.19  	// Search float images
    1.20      for (int i=0; i<floatimage.size(); ++i )
    1.21 -		if (floatimage.at(i)->inBox(p) && 
    1.22 +		if (inBox(p,floatimage.at(i)->getClickBox()) && 
    1.23  			(floatimage.at(i) != excludeLMO) && 
    1.24  			floatimage.at(i)->getParObj()!= excludeLMO &&
    1.25  			floatimage.at(i)->isVisibleObj()