diff layer/Colour3DPlotLayer.h @ 156:b32282fefccd

* Tidy up inheritance hierarchy of model classes -- remove ZoomConstraint as a base class (make it a member instead) and remove virtual inheritances of QObject (no longer necessary).
author Chris Cannam
date Thu, 05 Oct 2006 11:03:06 +0000
parents 33929e0c3c6b
children c1fb771b7646
line wrap: on
line diff
--- a/layer/Colour3DPlotLayer.h	Wed Oct 04 14:01:28 2006 +0000
+++ b/layer/Colour3DPlotLayer.h	Thu Oct 05 11:03:06 2006 +0000
@@ -45,7 +45,9 @@
     Colour3DPlotLayer();
     ~Colour3DPlotLayer();
 
-    virtual const ZoomConstraint *getZoomConstraint() const { return m_model; }
+    virtual const ZoomConstraint *getZoomConstraint() const {
+        return m_model ? m_model->getZoomConstraint() : 0;
+    }
     virtual const Model *getModel() const { return m_model; }
     virtual void paint(View *v, QPainter &paint, QRect rect) const;