Skip to content

Commit bbef9a3

Browse files
committed
Changed to getDisplayName() instead of Label and bugfix don't try to retrieve zoomRegion when processing code is not loaded
1 parent 19d18d3 commit bbef9a3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/main/java/at/gmi/nordborglab/widgets/geneviewer/client/GeneViewer.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,10 @@ public void onClick(ClickEvent event) {
515515
track_container.clear();
516516
for (GenomeStat stat:genomeStats) {
517517
Image checkbox_image = new Image(mainRes.checkmark());
518-
checkbox_image.setTitle("Click to add/remove "+ stat.getLabel()+" statistics to the chart as new series");
518+
checkbox_image.setTitle("Click to add/remove "+ stat.getDisplayName()+" statistics to the chart as new series");
519519
checkbox_image.setAltText(stat.getName());
520-
Anchor link = new Anchor(stat.getLabel());
521-
link.setTitle("Click to display "+ stat.getLabel()+" statistics");
520+
Anchor link = new Anchor(stat.getDisplayName());
521+
link.setTitle("Click to display "+ stat.getDisplayName()+" statistics");
522522
link.setName(stat.getName());
523523
FlowPanel panel = new FlowPanel();
524524
SimplePanel panel_names = new SimplePanel();
@@ -636,6 +636,8 @@ private void initStatisticsChart() {
636636

637637
@Override
638638
public void onUnderlay(UnderlayEvent event) {
639+
if (!processing.isLoaded())
640+
return;
639641
int zoomStart = processing.getInstance().getZoomStart();
640642
int zoomEnd = processing.getInstance().getZoomEnd();
641643
event.canvas.save();

0 commit comments

Comments
 (0)