Kaydet (Commit) 3ca2a0e5 authored tarafından Noel Grandin's avatar Noel Grandin

handle empty tools::Rectangle in sfx2

Change-Id: I468108c74480e61215a85232421e8ce1a00e846d
Reviewed-on: https://gerrit.libreoffice.org/72058
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst c3f82afd
......@@ -2334,7 +2334,7 @@ void SfxWorkWindow::ArrangeAutoHideWindows( SfxSplitWindow *pActSplitWin )
// If a Window is visible to the right, then the free region
// starts to the left from it, for example at the Client area
long nRight = aPos.X();
if ( nRight < aArea.Right() )
if ( !aArea.IsWidthEmpty() && nRight < aArea.Right() )
aArea.SetRight( nRight );
break;
}
......
......@@ -982,8 +982,8 @@ Sequence< beans::PropertyValue > SAL_CALL SfxBaseModel::getArgs()
Sequence< sal_Int32 > aRectSeq(4);
aRectSeq[0] = aTmpRect.Left();
aRectSeq[1] = aTmpRect.Top();
aRectSeq[2] = aTmpRect.Right();
aRectSeq[3] = aTmpRect.Bottom();
aRectSeq[2] = aTmpRect.IsWidthEmpty() ? aTmpRect.Left() : aTmpRect.Right();
aRectSeq[3] = aTmpRect.IsHeightEmpty() ? aTmpRect.Top() : aTmpRect.Bottom();
seqArgsNew.realloc( ++nNewLength );
seqArgsNew[ nNewLength - 1 ].Name = "WinExtent";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment