FIX: crash if finding pos of cat
This commit is contained in:
parent
65ebdccd90
commit
bcb2d5b6fc
@ -1697,7 +1697,7 @@ namespace nana
|
|||||||
///Translate relative position (position in display) into absolute position (original data order)
|
///Translate relative position (position in display) into absolute position (original data order)
|
||||||
size_type absolute(const index_pair& display_pos) const
|
size_type absolute(const index_pair& display_pos) const
|
||||||
{
|
{
|
||||||
if(sorted_index_ == npos)
|
if(sorted_index_ == npos || display_pos.item == npos)
|
||||||
return display_pos.item ;
|
return display_pos.item ;
|
||||||
|
|
||||||
auto & catobj = *_m_at(display_pos.cat);
|
auto & catobj = *_m_at(display_pos.cat);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user