Apache OpenOffice (AOO) Bugzilla – Issue 18490
Continuous repainting during export
Last modified: 2013-08-07 14:41:36 UTC
- load a larger document (e.g. 200 pages) - export as PDF - while the progress bar advances you can witness the document being repainted all the time seen on Windows as well as Unix; on Unix it is more visible since painting is slower.
FME->PL: Well, SwEditWin::Paint() is called a million times from vcl during the export. Could you please have a look?
.
pl->fme: the Paint calls get generated by writer using invalidate, call stack is this: #0 Window::Invalidate(unsigned short) (this=0x4606fa88, nFlags=0) at ../../inc/outdev.hxx:622 #1 0x452e74cd in ViewShell::ImplApplyViewOptions(SwViewOption const&) ( this=0x46073188, rOpt=@0xbfffc2d0) at /usr/data/vcl7pp1r2/sw.lnk/source/core/view/viewsh.cxx:2073 #2 0x452e6dd6 in ViewShell::ApplyViewOptions(SwViewOption const&) ( this=0x46073188, rOpt=@0xbfffc2d0) at /usr/data/vcl7pp1r2/sw.lnk/source/core/view/viewsh.cxx:1943 #3 0x459fba10 in SwXTextDocument::render(long, com::sun::star::uno::Any const&, com::sun::star::uno::Sequence<com::sun::star::beans::PropertyValue> const&) (this=0xbfffc2d0, nRenderer=4, rSelection=@0x10, rxOptions=@0xbfffc330) at /usr/data/vcl7pp1r2/sw.lnk/source/ui/uno/unotxdoc.cxx:2605
FME->OS: Seems like setting the view options always triggers an invalidation of the window. This should not happen for setting the 'IsPDFExport' flag.
Fixed in cws os 18 sw/inc/viewsh.hxx sw/source/core/view/viewsh.cxx sw/source/ui/uno/unotxdoc.cxx
cws os18 can be found on so-cwsserv02, wntmsci8 and unxlngi5.pro
Checked Fix with internal CWS os18.
Verified. Fix will be available with OO 2.0.
tested integration in 680m38.