Kaydet (Commit) 8578df90 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) David Tardon

fix crash with empty booknames

Change-Id: Ifadb2129be53530720cb2023cdc0782b6e737f18
(cherry picked from commit 11e73a08)
Reviewed-on: https://gerrit.libreoffice.org/17944Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarDavid Tardon <dtardon@redhat.com>
Tested-by: 's avatarDavid Tardon <dtardon@redhat.com>
üst 4ff8b3a3
......@@ -4202,17 +4202,18 @@ bool WW8PLCFx_Book::MapName(OUString& rName)
return false;
bool bFound = false;
sal_uInt16 i = 0;
do
size_t i = 0;
while (i < aBookNames.size())
{
if (rName.equalsIgnoreAsciiCase(aBookNames[i]))
{
rName = aBookNames[i];
bFound = true;
break;
}
++i;
}
while (!bFound && i < pBook[0]->GetIMax());
return bFound;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment