[PATCH] Use global constants for initial tab count bounds checking

Kohei Yoshida kohei.yoshida at gmail.com
Tue Apr 17 17:21:24 PDT 2012


On Wed, 2012-04-18 at 00:41 +0200, Albert Thuswaldner wrote:
> Hi Kohei,
> This patch makes the bounds checking of the initial tab count more
> consistent with the actual limits.

Actually we intentionally limit the number of initial sheets to 1024
even though the document can have up to 10000 sheets.

This is to prevent users to accidentally set the initial sheets too
high, since that could cause the memory usage of even a blank document
to exceed the available system memory, and it becomes very difficult to
revert the setting once it's set.

Kohei

-- 
Kohei Yoshida, LibreOffice hacker, Calc



More information about the LibreOffice mailing list