diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-03-26 21:08:33 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-03-27 08:53:31 +0100 |
commit | e3196f3dddad6e7825db3b35e8196be35b466fd9 (patch) | |
tree | b2ddbe8cdfca31315841a59760bc97d2ed2d88ca /sw/source | |
parent | a6496d03f69ae4a0140f78eff2d6f29a6fdb74da (diff) |
Fix pointer equality comparision
...between OutputDevice* and derived SfxPrinter*
Change-Id: I221f8a184c5019db6920cf199570e6d14f434b5c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91155
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/layout/paintfrm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/layout/paintfrm.cxx b/sw/source/core/layout/paintfrm.cxx index 93c28c6503f3..2f7f4e4d4dc3 100644 --- a/sw/source/core/layout/paintfrm.cxx +++ b/sw/source/core/layout/paintfrm.cxx @@ -19,6 +19,7 @@ #include <vcl/lazydelete.hxx> #include <sfx2/docfile.hxx> +#include <sfx2/printer.hxx> #include <sfx2/progress.hxx> #include <editeng/brushitem.hxx> #include <editeng/prntitem.hxx> @@ -3841,7 +3842,7 @@ bool SwFlyFrame::IsPaint( SdrObject *pObj, const SwViewShell *pSh ) { if ( !pAnch->isFrameAreaPositionValid() ) pAnch = nullptr; - else if ( reinterpret_cast<sal_IntPtr>(pSh->GetOut()) == reinterpret_cast<sal_IntPtr>(pSh->getIDocumentDeviceAccess().getPrinter( false ))) + else if ( pSh->GetOut() == pSh->getIDocumentDeviceAccess().getPrinter( false )) { //HACK: we have to omit some of the objects for printing, //otherwise they would be printed twice. |