[Libreoffice-commits] core.git: svtools/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Fri Oct 12 07:47:36 UTC 2018
svtools/source/filter/exportdialog.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 64aabbe88f2c0989565957033e1bf1e9a2c736d4
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Oct 11 15:52:32 2018 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Oct 12 09:47:04 2018 +0200
coverity#1440241 silence Dereference after null check
Change-Id: I6c4f4b626c02de3cd69c32dcb4ffea282c0ebff5
Reviewed-on: https://gerrit.libreoffice.org/61683
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
Tested-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/svtools/source/filter/exportdialog.cxx b/svtools/source/filter/exportdialog.cxx
index b3e6529ea8a0..b9267a6ddaba 100644
--- a/svtools/source/filter/exportdialog.cxx
+++ b/svtools/source/filter/exportdialog.cxx
@@ -223,12 +223,14 @@ uno::Sequence< beans::PropertyValue > ExportDialog::GetFilterData( bool bUpdateC
else
nColor = 1;
pFilterOptions->WriteInt32("ColorMode", nColor);
+ assert(mpSbCompression);
pFilterOptions->WriteInt32("Quality", static_cast<sal_Int32>(mpSbCompression->get_value()));
}
break;
case FORMAT_PNG :
{
+ assert(mpSbCompression);
pFilterOptions->WriteInt32("Compression", static_cast<sal_Int32>(mpSbCompression->get_value()));
sal_Int32 nInterlace = 0;
if ( mxCbInterlaced->get_active() )
More information about the Libreoffice-commits
mailing list