Fixed a "main.project" bug
This commit is contained in:
parent
f12fe23c1b
commit
dc3893eecc
@ -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)
|
||||
|
Reference in New Issue
Block a user