FIX: crash if finding pos of cat

This commit is contained in:
qPCR4vir 2015-05-05 13:55:57 +02:00
parent 65ebdccd90
commit bcb2d5b6fc

View File

@ -1697,7 +1697,7 @@ namespace nana
///Translate relative position (position in display) into absolute position (original data order)
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 ;
auto & catobj = *_m_at(display_pos.cat);