# HG changeset patch
# User Chris Cannam
# Date 1430308977 -3600
# Node ID 17cb48115d2248c8a917a86aa9e16a8317da52ab
# Parent  fe46201414c87d2f682cbb44763b909bfa40c542
Fix positioning of local feature illumination rectangle

diff -r fe46201414c8 -r 17cb48115d22 view/ViewProxy.h
--- a/view/ViewProxy.h	Wed Apr 29 12:37:23 2015 +0100
+++ b/view/ViewProxy.h	Wed Apr 29 13:02:57 2015 +0100
@@ -85,9 +85,15 @@
 		     r.width() * m_scaleFactor,
 		     r.height() * m_scaleFactor);
     }
-    virtual QSize getPaintSize() const { return getPaintRect().size(); }
-    virtual int getPaintWidth() const { return getPaintRect().width(); }
-    virtual int getPaintHeight() const { return getPaintRect().height(); }
+    virtual QSize getPaintSize() const {
+        return getPaintRect().size();
+    }
+    virtual int getPaintWidth() const { 
+        return getPaintRect().width();
+    }
+    virtual int getPaintHeight() const { 
+        return getPaintRect().height();
+    }
     virtual bool hasLightBackground() const {
 	return m_view->hasLightBackground();
     }
@@ -101,9 +107,14 @@
 	return m_view->getViewManager();
     }
 	
-    virtual bool shouldIlluminateLocalFeatures(const Layer *layer, QPoint &point) const {
-	return m_view->shouldIlluminateLocalFeatures(layer, point);
+    virtual bool shouldIlluminateLocalFeatures(const Layer *layer,
+                                               QPoint &point) const {
+        QPoint p;
+	bool should = m_view->shouldIlluminateLocalFeatures(layer, p);
+        point = QPoint(p.x() * m_scaleFactor, p.y() * m_scaleFactor);
+        return should;
     }
+
     virtual bool shouldShowFeatureLabels() const {
 	return m_view->shouldShowFeatureLabels();
     }