Skip to content
Snippets Groups Projects
Commit bd8f84f8 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

fix for handling of shift in mask overlay mouse event

parent 8fe9ce08
Branches
Tags
No related merge requests found
......@@ -118,7 +118,7 @@ bool MaskOverlay::OnMouseEvent(QMouseEvent* e, DataViewerPanel* dvp,
if(active_>=0){
geom::Polygon2 pol=polygons_[active_];
for(unsigned int j=0;j<pol.GetNodeCount();++j){
if(Length(mousepos-pol.GetNode(j))<3){
if(Length(mousepos-(pol.GetNode(j)+shift_))<3){
active_node_=j;
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment