Skip to content

Commit

Permalink
Merge branch 'overlapping-annotations'
Browse files Browse the repository at this point in the history
  • Loading branch information
miek committed Oct 16, 2023
2 parents 8ea8113 + 9ab2b0b commit d8760d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spectrogramplot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ QString *SpectrogramPlot::mouseAnnotationComment(const QMouseEvent *event) {
int mouse_y = pos.y();

for (auto& a : visibleAnnotationLocations) {
if (a.isInside(mouse_x, mouse_y)) {
if (!a.annotation.comment.isEmpty() && a.isInside(mouse_x, mouse_y)) {
return &a.annotation.comment;
}
}
Expand Down

0 comments on commit d8760d7

Please sign in to comment.