[reportlab-users] Canvas.pageHasData

reportlab-users@reportlab.com reportlab-users@reportlab.com
Mon, 6 Sep 2004 10:20:11 +0200


Hello,
I've just seen this code in the current Subversion tree:

canvas.py:
>    def pageHasData(self):
>        "Info function - app can call it after showPage to see if it needs
a save"
>        return len(self._code) == 0

I may be wrong, but I feel that the test should be reversed:
data is stored in the _code member,
and pageHasData should tell whether _code is not empty...

--
Amaury Forgeot d'Arc