Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Fix bug with Draw and Erase buttons.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibusko committed Oct 24, 2018
1 parent 7ac95e5 commit c6aa359
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 3 additions & 0 deletions specviz/widgets/line_labels_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ def plot_linelists(self, table_views, panes, units, caller, **kwargs):

linelists_with_selections.append(new_list)

if len(linelists_with_selections) == 0:
return

# Merge all line lists into a single one.
merged_linelist = LineList.merge(linelists_with_selections, units)

Expand Down
1 change: 0 additions & 1 deletion specviz/widgets/linelists_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,6 @@ def displayPlottedLines(self, linelist):
def erasePlottedLines(self):
index_last = self.tabWidget.count() - 1
self.tabWidget.removeTab(index_last)
self.tabWidget.addTab(QWidget(), PLOTTED)

# computes total of rows selected in all table views in all panes
# and displays result in GUI.
Expand Down

0 comments on commit c6aa359

Please sign in to comment.