diff --git a/src/gui_qt/lib/pg_objects.py b/src/gui_qt/lib/pg_objects.py index fba116b..f81e28a 100644 --- a/src/gui_qt/lib/pg_objects.py +++ b/src/gui_qt/lib/pg_objects.py @@ -383,6 +383,10 @@ class RegionItem(LinearRegionItem): if not hasattr(self, '_bounds') and hasattr(self, '_boundingRectCache'): self._bounds = self._boundingRectCache + for l in self.lines: + # higher z for borderlines improves chances that you can move it when multiple regions overlap + l.setZValue(self.zValue() + 1) + def setLogMode(self, xmode, _): if self.logmode == xmode: return