summaryrefslogtreecommitdiff
path: root/sd/source/ui/view
diff options
context:
space:
mode:
authorMihai Varga <mihai.varga@collabora.com>2015-08-07 09:03:26 +0300
committerSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2015-10-01 14:40:40 +0000
commit45576ea3b3c19d8fe545e984bf23708df90b1990 (patch)
tree4d2da6e2a9422cc09693feba6de206b3c7fd868a /sd/source/ui/view
parent5e985c2f346f25ada98e19e0531ea99cd9a7931c (diff)
Impress: set current page Id before showing the new page
For tiled rendering this has the effect of not invalidating the previous slide when switching slides. After switching slides, an invalidation occurs caused by showing the new slide, and calling 'GetPart' before 'SwitchPage' finishes returned the old part number. Change-Id: I1cafd0e51cd39be3a80d0559ae3051238b8df744 Reviewed-on: https://gerrit.libreoffice.org/17562 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'sd/source/ui/view')
-rw-r--r--sd/source/ui/view/drviews1.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx
index 83e726fa7ab5..78a6bc0c86d3 100644
--- a/sd/source/ui/view/drviews1.cxx
+++ b/sd/source/ui/view/drviews1.cxx
@@ -967,6 +967,7 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
}
mpDrawView->HideSdrPage();
+ maTabControl->SetCurPageId(nSelectedPage+1);
mpDrawView->ShowSdrPage(mpActualPage);
GetViewShellBase().GetDrawController().FireSwitchCurrentPage(mpActualPage);
@@ -992,7 +993,6 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
}
}
- maTabControl->SetCurPageId(nSelectedPage+1);
OUString aPageName = mpActualPage->GetName();
if (maTabControl->GetPageText(nSelectedPage+1) != aPageName)
@@ -1028,6 +1028,7 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
}
mpDrawView->HideSdrPage();
+ maTabControl->SetCurPageId(nSelectedPage+1);
SdPage* pMaster = GetDoc()->GetMasterSdPage(nSelectedPage, mePageKind);
@@ -1066,8 +1067,6 @@ bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage)
if (nPos != -1)
aLayoutName = aLayoutName.copy(0, nPos);
- maTabControl->SetCurPageId(nSelectedPage+1);
-
if (maTabControl->GetPageText(nSelectedPage+1) != aLayoutName)
{
maTabControl->SetPageText(nSelectedPage+1, aLayoutName);