sw/source/core/layout/atrfrm.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 0994cb60411b0efc71a8d6ef182e158761a85b6b Author: Miklos Vajna <vmik...@suse.cz> Date: Wed Mar 21 15:24:42 2012 +0100 SwFmtVertOrient: warn if passed relation type is wrong, don't just ignore it diff --git a/sw/source/core/layout/atrfrm.cxx b/sw/source/core/layout/atrfrm.cxx index 920eb52..e836f62 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; _______________________________________________ Libreoffice-commits mailing list Libreoffice-commits@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits