prevent accessing empty vector
Fixes https://github.com/root-project/root/issues/10180
This commit is contained in:
parent
a575990cfc
commit
97166bc3b2
@ -384,6 +384,7 @@ namespace textinput {
|
||||
return kPRSuccess;
|
||||
}
|
||||
case kCmdUndo:
|
||||
if (fUndoBuf.empty()) return kPRSuccess;
|
||||
Line = fUndoBuf.back().first;
|
||||
fContext->SetCursor(fUndoBuf.back().second);
|
||||
fUndoBuf.pop_back();
|
||||
|
Loading…
Reference in New Issue
Block a user