@@ -1212,19 +1212,24 @@ def updateLayout(self):
12121212 scaleWidget .setGeometry (scaleRect [axisId ])
12131213 startDist , endDist = scaleWidget .getBorderDistHint ()
12141214 scaleWidget .setBorderDist (startDist , endDist )
1215- if axisId in (self .xBottom , self .xTop ):
1216- r = QRegion (scaleRect [axisId ])
1217- if self .axisEnabled (self .yLeft ):
1218- r = r .subtracted (QRegion (scaleRect [self .yLeft ]))
1219- if self .axisEnabled (self .yRight ):
1220- r = r .subtracted (QRegion (scaleRect [self .yRight ]))
1221- r .translate (- scaleRect [axisId ].x (), - scaleRect [axisId ].y ())
1222-
1223- scaleWidget .setMask (r )
1224-
1215+
1216+ #-------------------------------------------------------------
1217+ #XXX: The following was commented to fix issue #35
1218+ # Note: the same code part in Qwt's original source code is
1219+ # annotated with the mention "do we need this code any
1220+ # longer ???"... I guess not :)
1221+ # if axisId in (self.xBottom, self.xTop):
1222+ # r = QRegion(scaleRect[axisId])
1223+ # if self.axisEnabled(self.yLeft):
1224+ # r = r.subtracted(QRegion(scaleRect[self.yLeft]))
1225+ # if self.axisEnabled(self.yRight):
1226+ # r = r.subtracted(QRegion(scaleRect[self.yRight]))
1227+ # r.translate(-scaleRect[axisId].x(), -scaleRect[axisId].y())
1228+ # scaleWidget.setMask(r)
1229+ #-------------------------------------------------------------
1230+
12251231 if not scaleWidget .isVisibleTo (self ):
12261232 scaleWidget .show ()
1227-
12281233 else :
12291234 scaleWidget .hide ()
12301235
0 commit comments