summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2011-10-28 13:33:42 +0200
committerMichael Stahl <mstahl@redhat.com>2011-10-28 17:33:43 +0200
commitb6828ca1624d289dc8d2cb15605ade5da1a2382a (patch)
treefac349667d5f4a5ebba8fbcbbc92776b1324fab3 /svx
parent96be522e795d88134e010035bc63d625564ddbea (diff)
rhbz#680365: SwRenderData: do not store SwPageFrm*
Currently when printing via SwXTextDocument::getRendererCount() two STL containers in class SwRenderData are filled with bare pointers to page frames from the layout. These pointers are then used by SwXTextDocument::render(), which takes one page out of the map and prints it via this non-ref-counted pointer. This bizarre design will not be tolerated; instead, when printing a page, iterate over SwRootFrm::GetLower() until the requested page is found. This is slower, i.e. O(n^2), but at least it does not crash.
Diffstat (limited to 'svx')
0 files changed, 0 insertions, 0 deletions