Skip to content

Commit 337b058

Browse files
authored
Merge pull request #825 from stuart-cls/peakfit-zoom-to-fits
CurvePlot: Markings count as Items (for bounds corrections)
2 parents 847d688 + 84adacc commit 337b058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orangecontrib/spectroscopy/widgets/owspectra.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ def set_curve_pens(self, curves=None):
15061506

15071507
def add_marking(self, item):
15081508
self.markings.append(item)
1509-
self.plot.addItem(item, ignoreBounds=True)
1509+
self.plot.addItem(item, ignoreBounds=False)
15101510

15111511
def in_markings(self, item):
15121512
return item in self.markings

0 commit comments

Comments
 (0)