Skip to content

Commit e226954

Browse files
committed
StringVectorModel: discard invalid indexes
1 parent 3a0e5fa commit e226954

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

model/StringVectorModel.h

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ class CStringVectorModel :
2222

2323
const char *GetText( int line ) final override
2424
{
25+
if( line < 0 )
26+
return NULL;
27+
2528
return Element( line ).String();
2629
}
2730

0 commit comments

Comments
 (0)