1
0
mirror of https://github.com/kepler155c/opus synced 2024-12-25 16:10:26 +00:00

pass raw values for grid overrides

This commit is contained in:
kepler155c@gmail.com 2017-12-27 23:55:30 -05:00
parent 0830e46fb8
commit 1108c173d7

View File

@ -1500,9 +1500,9 @@ function UI.Grid:drawRows()
for index = startRow, lastRow do for index = startRow, lastRow do
local sindex = self.sorted[index] local sindex = self.sorted[index]
local row = self.values[sindex] local rawRow = self.values[sindex]
local key = sindex local key = sindex
row = self:getDisplayValues(row, key) local row = self:getDisplayValues(rawRow, key)
sb:clear() sb:clear()
@ -1519,8 +1519,8 @@ function UI.Grid:drawRows()
local selected = index == self.index and not self.inactive local selected = index == self.index and not self.inactive
self:write(1, y, sb:get(), self:write(1, y, sb:get(),
self:getRowBackgroundColor(row, selected), self:getRowBackgroundColor(rawRow, selected),
self:getRowTextColor(row, selected)) self:getRowTextColor(rawRow, selected))
y = y + 1 y = y + 1
end end