summaryrefslogtreecommitdiff
path: root/sfx2/source/bastyp/fltfnc.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-07-31 11:22:03 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-07-31 09:55:17 +0000
commitdd4befa992300cc068467021c81594ffcea1be0c (patch)
treee6519ca0a7b95667a7128ebe6e38b69c4c5226c1 /sfx2/source/bastyp/fltfnc.cxx
parent9ffdcc76858bc01150727345de4dfd0ef40ed8c0 (diff)
fix crash in writer, thanks to my new assert in typed_flags_set
and clean up the duplication of constants between filter/ and comphelper/ in the process Change-Id: I0d1525b559c63a3d39deae51accff5dcdbb0aa82 Reviewed-on: https://gerrit.libreoffice.org/17446 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sfx2/source/bastyp/fltfnc.cxx')
-rw-r--r--sfx2/source/bastyp/fltfnc.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sfx2/source/bastyp/fltfnc.cxx b/sfx2/source/bastyp/fltfnc.cxx
index 48bf28dfdbc8..d00e5f77a452 100644
--- a/sfx2/source/bastyp/fltfnc.cxx
+++ b/sfx2/source/bastyp/fltfnc.cxx
@@ -1000,6 +1000,7 @@ void SfxFilterContainer::ReadSingleFilter_Impl(
{
sal_Int32 nTmp(0);
lFilterProperties[nFilterProperty].Value >>= nTmp;
+ assert((nTmp & ~o3tl::typed_flags<SfxFilterFlags>::mask) == 0);
nFlags = static_cast<SfxFilterFlags>(nTmp);
}
else if ( lFilterProperties[nFilterProperty].Name == "UIName" )