Kaydet (Commit) 840e4dd1 authored tarafından Caolán McNamara's avatar Caolán McNamara

ofz#6414 Integer-overflow

Change-Id: I1090711877707b9e66aef36910eca2df81c7c3b6
Reviewed-on: https://gerrit.libreoffice.org/49858Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 832ba85e
......@@ -93,6 +93,7 @@
#include <svx/hlnkitem.hxx>
#include <svl/whiter.hxx>
#include <o3tl/enumrange.hxx>
#include <o3tl/safeint.hxx>
#include <memory>
#include <filter/msfilter/escherex.hxx>
#include "sprmids.hxx"
......@@ -2319,7 +2320,7 @@ RndStdIds SwWW8ImplReader::ProcessEscherAlign(SvxMSDffImportRec* pRecord,
// floating screen objects, which are imported.
{
// Miserable miserable hack.
SwTwips nWidth = (pFSPA->nXaRight - pFSPA->nXaLeft);
SwTwips nWidth = o3tl::saturating_sub(pFSPA->nXaRight, pFSPA->nXaLeft);
SwTwips nLeft = pFSPA->nXaLeft;
if (MiserableRTLGraphicsHack(nLeft, nWidth, eHoriOri,
eHoriRel))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment