[Libreoffice-commits] .: sw/source

Miklos Vajna vmiklos at kemper.freedesktop.org
Wed Mar 21 07:24:42 PDT 2012


 sw/source/core/layout/atrfrm.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 0994cb60411b0efc71a8d6ef182e158761a85b6b
Author: Miklos Vajna <vmiklos at 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;


More information about the Libreoffice-commits mailing list