Allow last image in stack to be selected by slider in ImageView
This commit is contained in:
parent
cd2b16dbae
commit
55d9e8888b
@ -748,7 +748,7 @@ class ImageView(QtGui.QWidget):
|
|||||||
if len(xv) < 2:
|
if len(xv) < 2:
|
||||||
return (0,0)
|
return (0,0)
|
||||||
totTime = xv[-1] + (xv[-1]-xv[-2])
|
totTime = xv[-1] + (xv[-1]-xv[-2])
|
||||||
inds = np.argwhere(xv < t)
|
inds = np.argwhere(xv <= t)
|
||||||
if len(inds) < 1:
|
if len(inds) < 1:
|
||||||
return (0,t)
|
return (0,t)
|
||||||
ind = inds[-1,0]
|
ind = inds[-1,0]
|
||||||
|
Loading…
Reference in New Issue
Block a user