There are only two calls to SetPageToolTip():
- one is in a loop with well defined range (projectmanagerui.cpp:2199)
- other uses the result of wxAuiNotebook::GetPageIndex() (editorbase.cpp:169)
Chenging the second part to this
if (nb)
{
const int idx = nb->GetPageIndex(this);
if (idx != wxNOT_FOUND)
{
nb->SetPageToolTip(idx, toolTip);
Manager::Get()->GetEditorManager()->MarkReadOnly(idx, IsReadOnly() || (fname.FileExists() && !wxFile::Access(fname.GetFullPath(), wxFile::write)) );
}
}
should fix the issue.