summaryrefslogtreecommitdiffstats
path: root/filter/source/msfilter/msdffimp.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-15 09:09:27 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-15 14:06:11 +0100
commita12ad856148f2e2da55dcaa6e6c295bea6dc38c7 (patch)
tree95f066d3ba5506149f610f2d1b68be9f72ccc768 /filter/source/msfilter/msdffimp.cxx
parenttdf#115345: removed slide orientation setting method. (diff)
downloadcore-a12ad856148f2e2da55dcaa6e6c295bea6dc38c7.tar.gz
core-a12ad856148f2e2da55dcaa6e6c295bea6dc38c7.zip
ofz#6365 Integer-overflow
Change-Id: I415038642ef4936d403fad8022422697a189abc8 Reviewed-on: https://gerrit.libreoffice.org/49797 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'filter/source/msfilter/msdffimp.cxx')
-rw-r--r--filter/source/msfilter/msdffimp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx
index 59b042359b6c..4d0403a1163e 100644
--- a/filter/source/msfilter/msdffimp.cxx
+++ b/filter/source/msfilter/msdffimp.cxx
@@ -2822,7 +2822,7 @@ void DffPropertyReader::ImportGradientColor( SfxItemSet& aSet,MSO_FillType eMSO_
nChgColors ^= 1;
else if ( nFocus < 0 )//If it is a negative focus, the color will be swapped
{
- nFocus = -nFocus;
+ nFocus = o3tl::saturating_toggle_sign(nFocus);
nChgColors ^= 1;
}