diff options
Diffstat (limited to 'filter/source/msfilter')
-rw-r--r-- | filter/source/msfilter/msdffimp.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/filter/source/msfilter/msdffimp.cxx b/filter/source/msfilter/msdffimp.cxx index 5b4599ea2bc1..c3efb0aaa1b2 100644 --- a/filter/source/msfilter/msdffimp.cxx +++ b/filter/source/msfilter/msdffimp.cxx @@ -4009,7 +4009,9 @@ SdrObject* SvxMSDffManager::ImportGroup( const DffRecordHeader& rHd, SvStream& r sal_Int32 nHalfHeight = ( aClientRect.GetHeight() + 1 ) >> 1; Point aTopLeft( aClientRect.Left() + nHalfWidth - nHalfHeight, aClientRect.Top() + nHalfHeight - nHalfWidth ); - Size aNewSize( aClientRect.GetHeight(), aClientRect.GetWidth() ); + const long nRotatedWidth = aClientRect.GetHeight(); + const long nRotatedHeight = aClientRect.GetWidth(); + Size aNewSize(nRotatedWidth, nRotatedHeight); Rectangle aNewRect( aTopLeft, aNewSize ); aClientRect = aNewRect; } |