Fixed a "main.project" bug

This commit is contained in:
Arnar Flatberg 2007-08-02 10:19:16 +00:00
parent f12fe23c1b
commit dc3893eecc

View File

@ -280,7 +280,7 @@ class NavigatorMenu(gtk.Menu):
#project._selection_observers.append(plot)
def on_plot_hist(self, item, navigator):
project = navigator.project
project = main.project
plot = plots.HistogramPlot(self.dataset, name='Histogram')
icon = fluents.icon_factory.get("line_plot")
project.data_tree_insert(self.tree_iter, 'Histogram', plot, None, "black", icon)