[PATCH] [REVIEW:3-5] fdo#47473 legacy reports created in 3.5 fail to open
Lionel Elie Mamane
lionel at mamane.lu
Tue Jun 5 13:11:23 PDT 2012
Legacy reports (not Sun/Oracle Report Builder ones) created by the
wizard in LibreOffice 3.5 or later fail to open (in LibreOffice 3.5
and later): show empty data.
To correct i#98163, LibO 3.5 leaves the Command hidden control value
empty, this is the signal that on opening, it should fetch the current
definition of the query (in QueryName hidden control); that change is
inherited from a OO.org 3.4 CWS...
The problem was within the prependSortCriteria() method call. It tries
to use (deeper withing subobjects) metadata about columns that gets
initialised only at ->execute time, and thus all this code raised an
exception (null pointer). So I moved it to after the execute(), but
then we have to ->execute again so that it gets taken into
account... Hmmm... There is probably a better solution, but this one
works for now.
Please apply to libreoffice-3-5 branch.
--
Lionel
More information about the LibreOffice
mailing list