Kaydet (Commit) c0d8d83b authored tarafından Markus Mohrhard's avatar Markus Mohrhard

fix out of bounds access in printfunc.cxx

üst 1d2142fb
......@@ -170,6 +170,8 @@ SCTAB ScPrintFuncCache::GetTabForPage( long nPage ) const
SCTAB nTab = 0;
while ( nTab < nTabCount && nPage >= nPages[nTab] )
nPage -= nPages[nTab++];
if (nTab >= nTabCount)
nTab = nTabCount - 1;
return nTab;
}
......
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