From 0994cb60411b0efc71a8d6ef182e158761a85b6b Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 21 Mar 2012 15:24:42 +0100 Subject: SwFmtVertOrient: warn if passed relation type is wrong, don't just ignore it --- sw/source/core/layout/atrfrm.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sw') diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 920eb52d6570..e836f628bf0d 100644 --- a/sw/source/core/layout/atrfrm.cxx +++ b/sw/source/core/layout/atrfrm.cxx @@ -149,7 +149,8 @@ sal_Int16 lcl_IntToRelation(const uno::Any& rVal) { sal_Int16 eRet = text::RelOrientation::FRAME; sal_Int16 nVal = 0; - rVal >>= nVal; + if (!(rVal >>= nVal)) + SAL_WARN("sw.core", "lcl_IntToRelation: read from Any failed!"); switch(nVal) { case text::RelOrientation::PRINT_AREA: eRet = text::RelOrientation::PRINT_AREA ; break; -- cgit