fdo#80534 bad default value (0) for the number of rows

Change-Id: I39604cf13d1e5714f701dd663ab37a8aed924fa2
(cherry picked from commit 9aede3befb65524d71a2cb8081ded6eb7aa67f55)
Reviewed-on: https://gerrit.libreoffice.org/11085
Reviewed-by: Joren De Cuyper <jorendc@libreoffice.org>
Tested-by: Joren De Cuyper <jorendc@libreoffice.org>