mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
cell_vector lost func "operator[]const"
This commit is contained in:
parent
c4a2bb8c6d
commit
383337ad45
|
@ -161,4 +161,14 @@ cell cell_vector::operator[](std::size_t cell_index)
|
|||
return ws_.cell(cursor_.make_offset(0, static_cast<int>(cell_index)));
|
||||
}
|
||||
|
||||
const cell cell_vector::operator[](std::size_t cell_index) const
|
||||
{
|
||||
if (order_ == major_order::row)
|
||||
{
|
||||
return ws_.cell(cursor_.make_offset(static_cast<int>(cell_index), 0));
|
||||
}
|
||||
|
||||
return ws_.cell(cursor_.make_offset(0, static_cast<int>(cell_index)));
|
||||
}
|
||||
|
||||
} // namespace xlnt
|
||||
|
|
Loading…
Reference in New Issue
Block a user