vcl/source/treelist/treelistbox.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 8aee8c0cf1bdda1866594e75b0f9bd4b9a69c724 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Jun 4 14:02:48 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Jun 4 20:53:55 2020 +0200 customize dialog menu treeview icons misplaced since... commit b4f7a08ea5d5fd39057f2a6c7f9a8c015370557f Date: Sun May 31 17:04:21 2020 +0100 use extra optimization of fdo#75058 universally always update the expand/collapse positions Change-Id: I4d55ec6c29fb8d1a4d086847fc990329f9b3e223 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95514 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 389ed170828f..e41a11d0f103 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -1677,7 +1677,7 @@ void SvTreeListBox::SetExpandedEntryBmp( SvTreeListEntry* pEntry, const Image& a assert(pItem); pItem->SetBitmap2( aBmp ); - GetModel()->InvalidateEntry( pEntry ); + ModelHasEntryInvalidated(pEntry); SetEntryHeight( pEntry ); Size aSize = aBmp.GetSizePixel(); short nWidth = pImpl->UpdateContextBmpWidthVector( pEntry, static_cast<short>(aSize.Width()) ); @@ -1695,7 +1695,7 @@ void SvTreeListBox::SetCollapsedEntryBmp(SvTreeListEntry* pEntry,const Image& aB assert(pItem); pItem->SetBitmap1( aBmp ); - GetModel()->InvalidateEntry( pEntry ); + ModelHasEntryInvalidated(pEntry); SetEntryHeight( pEntry ); Size aSize = aBmp.GetSizePixel(); short nWidth = pImpl->UpdateContextBmpWidthVector( pEntry, static_cast<short>(aSize.Width()) ); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits