diff --git a/plugins/plot_surface/xl-surface.c b/plugins/plot_surface/xl-surface.c
index 58088868..49e0cf2f 100644
--- a/plugins/plot_surface/xl-surface.c
+++ b/plugins/plot_surface/xl-surface.c
@@ -367,6 +367,12 @@ xl_surface_plot_build_matrix (GogXYZPlot *plot, gboolean *cardinality_changed)
 	return data;
 }
 
+static void
+xl_surface_plot_foreach_elem (GogPlot *plot, gboolean only_visible,
+                              GogEnumFunc handler, gpointer data)
+{
+}
+
 static void
 xl_surface_plot_finalize (GObject *obj)
 {
@@ -405,6 +411,7 @@ xl_surface_plot_class_init (GogSurfacePlotClass *klass)
 	gog_plot_klass->desc.num_series_max = G_MAXINT;
 	gog_plot_klass->axis_get_bounds	= xl_xyz_plot_axis_get_bounds;
 	gog_plot_klass->series_type = xl_xyz_series_get_type();
+	gog_plot_klass->foreach_elem = xl_surface_plot_foreach_elem;
 
 	klass->build_matrix = xl_surface_plot_build_matrix;
 }
