diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-11-19 14:12:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-11-19 21:00:02 +0100 |
commit | a0b8bcf088e23bec930f91faa23975e132ece793 (patch) | |
tree | c5bb0b9da0a766a5bbdb1f811444c4ec89e60f7d /filter | |
parent | fastparser in SchXMLSeries2Context (diff) | |
download | core-a0b8bcf088e23bec930f91faa23975e132ece793.tar.gz core-a0b8bcf088e23bec930f91faa23975e132ece793.zip |
nChain should presumably be sal_uInt32 here
...given that SvxMSDffShapeInfo::nTxBxComp it interacts with is sal_uInt32, too
Change-Id: I38d9bc9c467d10644bddedcd873b14b1b4c3d1ae
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/106175
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'filter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 30d08a3e6d34..0af775d32df3 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -21,6 +21,7 @@ #include <com/sun/star/embed/XEmbeddedObject.hpp> #include <math.h> +#include <limits> #include <limits.h> #include <vector> @@ -5836,7 +5837,7 @@ void SvxMSDffManager::CheckTxBxStoryChain() { m_xShapeInfosById.reset(new SvxMSDffShapeInfos_ById); // mangle old Info array, sorted by nTxBxComp - sal_uLong nChain = ULONG_MAX; + sal_uInt32 nChain = std::numeric_limits<sal_uInt32>::max(); bool bSetReplaceFALSE = false; for (SvxMSDffShapeInfos_ByTxBxComp::iterator iter = m_xShapeInfosByTxBxComp->begin(), |