"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "sfx2/source/sidebar/TabBar.cxx" between
libreoffice-7.1.5.1.tar.xz and libreoffice-7.1.5.2.tar.xz

About: LibreOffice source code (core). "Fresh" packages (pre-release version).

TabBar.cxx  (libreoffice-7.1.5.1.tar.xz):TabBar.cxx  (libreoffice-7.1.5.2.tar.xz)
skipping to change at line 253 skipping to change at line 253
{ {
} }
TabBar::Item::~Item() TabBar::Item::~Item()
{ {
mrTabBar.GetContainer()->move(mxButton.get(), nullptr); mrTabBar.GetContainer()->move(mxButton.get(), nullptr);
} }
IMPL_LINK_NOARG(TabBar::Item, HandleClick, const OString&, void) IMPL_LINK_NOARG(TabBar::Item, HandleClick, const OString&, void)
{ {
// tdf#143146 copy the functor and arg before calling
// GrabFocusToDocument which may destroy this object
auto aDeckActivationFunctor = maDeckActivationFunctor;
auto sDeckId = msDeckId;
mrTabBar.GrabFocusToDocument(); mrTabBar.GrabFocusToDocument();
try try
{ {
maDeckActivationFunctor(msDeckId); aDeckActivationFunctor(sDeckId);
} }
catch(const css::uno::Exception&) catch(const css::uno::Exception&)
{} // workaround for #i123198# {} // workaround for #i123198#
} }
OUString const & TabBar::GetDeckIdForIndex (const sal_Int32 nIndex) const OUString const & TabBar::GetDeckIdForIndex (const sal_Int32 nIndex) const
{ {
if (nIndex<0 || o3tl::make_unsigned(nIndex)>=maItems.size()) if (nIndex<0 || o3tl::make_unsigned(nIndex)>=maItems.size())
throw RuntimeException(); throw RuntimeException();
return maItems[nIndex]->msDeckId; return maItems[nIndex]->msDeckId;
 End of changes. 2 change blocks. 
1 lines changed or deleted 6 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)