diff options
author | Michael Stahl <mstahl@redhat.com> | 2011-10-28 13:33:42 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2011-10-28 17:33:43 +0200 |
commit | b6828ca1624d289dc8d2cb15605ade5da1a2382a (patch) | |
tree | fac349667d5f4a5ebba8fbcbbc92776b1324fab3 /svx | |
parent | 96be522e795d88134e010035bc63d625564ddbea (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