vcl/win/gdi/salprn.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 10c65afcdad46ed02e377824bc43dbc384d52340 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Fri Aug 21 09:19:00 2020 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Aug 21 10:24:33 2020 +0200 loplugin:simplifybool (clang-cl) Change-Id: I88f659da3d80bf83f544edd89933b582f06b2556 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101130 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/vcl/win/gdi/salprn.cxx b/vcl/win/gdi/salprn.cxx index 053c503b1671..3f27d999d845 100644 --- a/vcl/win/gdi/salprn.cxx +++ b/vcl/win/gdi/salprn.cxx @@ -1470,7 +1470,7 @@ bool WinSalPrinter::StartJob( const OUString* pFileName, // bring up a file chooser if printing to file port but no file name given OUString aOutFileName; - if( mpInfoPrinter->maPortName.equalsIgnoreAsciiCase( "FILE:" ) && !(pFileName && !pFileName->isEmpty()) ) + if( mpInfoPrinter->maPortName.equalsIgnoreAsciiCase( "FILE:" ) && (!pFileName || pFileName->isEmpty()) ) { uno::Reference< uno::XComponentContext > xContext( ::comphelper::getProcessComponentContext() ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits