summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw/source/core/view/vdraw.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/view/vdraw.cxx b/sw/source/core/view/vdraw.cxx
index ed9cbbb7edad..136425ffd9cd 100644
--- a/sw/source/core/view/vdraw.cxx
+++ b/sw/source/core/view/vdraw.cxx
@@ -246,10 +246,10 @@ void SwViewImp::NotifySizeChg( const Size &rNewSz )
// Don't let large objects dissappear to the top
aSz.Width() = aSz.Height() = 0;
- if ( aObjBound.Bottom() < aDocRect.Top() )
- aSz.Width() = (aObjBound.Bottom() - aDocRect.Top()) - MINFLY;
if ( aObjBound.Right() < aDocRect.Left() )
- aSz.Height() = (aObjBound.Right() - aDocRect.Left()) - MINFLY;
+ aSz.Width() = (aDocRect.Left() - aObjBound.Right()) + MINFLY;
+ if ( aObjBound.Bottom() < aDocRect.Top() )
+ aSz.Height() = (aDocRect.Top() - aObjBound.Bottom()) + MINFLY;
if ( aSz.Width() || aSz.Height() )
pObj->Move( aSz );
}