diff options
author | Miklos Vajna <vmiklos@suse.cz> | 2012-03-21 15:24:42 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@suse.cz> | 2012-03-21 15:25:07 +0100 |
commit | 0994cb60411b0efc71a8d6ef182e158761a85b6b (patch) | |
tree | abcabd89e362b37d084c83334ccdb5f878736cae /sw | |
parent | 5c732ef6b566c35e18ed4f259764d5e8438d0527 (diff) |
SwFmtVertOrient: warn if passed relation type is wrong, don't just ignore it
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/atrfrm.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
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; |