Kaydet (Commit) 5b4952ca authored tarafından Caolán McNamara's avatar Caolán McNamara

margin change should trigger relayout

Change-Id: Idfcca3c6c37244ff073b9fc2fdc40955c39d01d1
Reviewed-on: https://gerrit.libreoffice.org/51012Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst df336d23
......@@ -1853,7 +1853,11 @@ sal_Int32 Window::get_border_width() const
void Window::set_margin_left(sal_Int32 nWidth)
{
WindowImpl *pWindowImpl = mpWindowImpl->mpBorderWindow ? mpWindowImpl->mpBorderWindow->mpWindowImpl.get() : mpWindowImpl.get();
pWindowImpl->mnMarginLeft = nWidth;
if (pWindowImpl->mnMarginLeft != nWidth)
{
pWindowImpl->mnMarginLeft = nWidth;
queue_resize();
}
}
sal_Int32 Window::get_margin_left() const
......@@ -1865,7 +1869,11 @@ sal_Int32 Window::get_margin_left() const
void Window::set_margin_right(sal_Int32 nWidth)
{
WindowImpl *pWindowImpl = mpWindowImpl->mpBorderWindow ? mpWindowImpl->mpBorderWindow->mpWindowImpl.get() : mpWindowImpl.get();
pWindowImpl->mnMarginRight = nWidth;
if (pWindowImpl->mnMarginRight != nWidth)
{
pWindowImpl->mnMarginRight = nWidth;
queue_resize();
}
}
sal_Int32 Window::get_margin_right() const
......@@ -1877,7 +1885,11 @@ sal_Int32 Window::get_margin_right() const
void Window::set_margin_top(sal_Int32 nWidth)
{
WindowImpl *pWindowImpl = mpWindowImpl->mpBorderWindow ? mpWindowImpl->mpBorderWindow->mpWindowImpl.get() : mpWindowImpl.get();
pWindowImpl->mnMarginTop = nWidth;
if (pWindowImpl->mnMarginTop != nWidth)
{
pWindowImpl->mnMarginTop = nWidth;
queue_resize();
}
}
sal_Int32 Window::get_margin_top() const
......@@ -1889,7 +1901,11 @@ sal_Int32 Window::get_margin_top() const
void Window::set_margin_bottom(sal_Int32 nWidth)
{
WindowImpl *pWindowImpl = mpWindowImpl->mpBorderWindow ? mpWindowImpl->mpBorderWindow->mpWindowImpl.get() : mpWindowImpl.get();
pWindowImpl->mnMarginBottom = nWidth;
if (pWindowImpl->mnMarginBottom != nWidth)
{
pWindowImpl->mnMarginBottom = nWidth;
queue_resize();
}
}
sal_Int32 Window::get_margin_bottom() const
......
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