fix(readerfooter): marker ticks initialization

This commit is contained in:
Qingping Hou committed 2016-03-18 23:24:51 -07:00
1 parent 6446f9d2b0
commit f48d9bd6d9
4 files changed
+57 -29

No files matched your search

+1 -2
View File
@@ -70,9 +70,8 @@ function ProgressWidget:paintTo(bb, x, y)
my_size.h-2*(self.margin_v+self.bordersize), self.rectcolor)
if self.ticks then
for i=1, #self.ticks do
local page = self.ticks[i]
bb:paintRect(
x + (my_size.w-2*self.margin_h)*(page/self.last),
x + (my_size.w-2*self.margin_h)*(self.ticks[i]/self.last),
y + self.margin_v + self.bordersize,
self.tick_width,
my_size.h-2*(self.margin_v+self.bordersize),