mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
Merge pull request #246 from yanwei1983/master
cell_vector lost func "operator[]const"
This commit is contained in:
commit
8bd85f9dbd
|
@ -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