sc/source/ui/view/viewdata.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit c94fa3d5b2225e46eb5d90a090e0586cbc7464ba
Author: Andreas Heinisch <[email protected]>
AuthorDate: Sun Mar 9 17:54:37 2025 +0100
Commit: Andreas Heinisch <[email protected]>
CommitDate: Mon Mar 10 09:14:11 2025 +0100
tdf#150317 - Sync visible tab during save process
Change-Id: I188d59e2b5ca7d7d6f92d405b886d3c12420b690
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182698
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <[email protected]>
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx
index 45c49f294ba4..49b6e23ec698 100644
--- a/sc/source/ui/view/viewdata.cxx
+++ b/sc/source/ui/view/viewdata.cxx
@@ -3787,6 +3787,8 @@ void ScViewData::WriteUserDataSequence(uno::Sequence
<beans::PropertyValue>& rSe
OUString sName;
GetDocument().GetName( nTabNo, sName );
+ // tdf#150317 - sync visible tab (later used for, e.g., thumbnail
generation)
+ GetDocument().SetVisibleTab(nTabNo);
pSettings[SC_ACTIVE_TABLE].Name = SC_ACTIVETABLE;
pSettings[SC_ACTIVE_TABLE].Value <<= sName;
pSettings[SC_HORIZONTAL_SCROLL_BAR_WIDTH].Name =
SC_HORIZONTALSCROLLBARWIDTH;