diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-07-01 06:46:41 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-07-01 06:46:41 +0000 |
commit | a793abc66d89cd73b85c2197562de3ffb72206f2 (patch) | |
tree | 8e955c5eb82878a5b03f91b1fa12f7d45187f5ee /svx/source/unodraw | |
parent | f56f0f425c6529d365bf84b7de74dd52d68cb653 (diff) |
INTEGRATION: CWS rptfix01 (1.174.8); FILE MERGED
2008/06/19 14:13:27 oj 1.174.8.1: #i90878# set right and bottom to RECT_EMPTY, unknonwn side effect
Diffstat (limited to 'svx/source/unodraw')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 9be8ba5614..c40ad725a6 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -7,7 +7,7 @@ * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unoshape.cxx,v $ - * $Revision: 1.174 $ + * $Revision: 1.175 $ * * This file is part of OpenOffice.org. * @@ -1206,9 +1206,19 @@ void SAL_CALL SvxShape::setSize( const awt::Size& rSize ) else { //aRect.SetSize(aLocalSize); // this call substract 1 // http://www.openoffice.org/issues/show_bug.cgi?id=83193 - aRect.setWidth(aLocalSize.Width()); - aRect.setHeight(aLocalSize.Height()); - + if ( !aLocalSize.Width() ) + { + aRect.Right() = RECT_EMPTY; + } + else + aRect.setWidth(aLocalSize.Width()); + if ( !aLocalSize.Height() ) + { + aRect.Bottom() = RECT_EMPTY; + } + else + aRect.setHeight(aLocalSize.Height()); + svx_setLogicRectHack( mpObj.get(), aRect ); } |