summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorKshitij Pathania <kshitijpathania@gmail.com>2018-01-27 00:40:50 +0530
committerTamás Zolnai <tamas.zolnai@collabora.com>2018-01-28 18:22:56 +0100
commit056c3bf2dcae23cd711d4cbffc3058cf31bfe75e (patch)
tree78c541b6307238c406c3170aa02ff182bb42148a /sd/source
parent94823392874be9c9249e312f6783394edf0e731f (diff)
tdf#111837 removed lag in navigator selection update
Change-Id: I0d15f8352ab1d8846df3b03334bda20550d117d2 Reviewed-on: https://gerrit.libreoffice.org/48717 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/dlg/navigatr.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx
index 3ffbe5942ed9..0fe0f97481c8 100644
--- a/sd/source/ui/dlg/navigatr.cxx
+++ b/sd/source/ui/dlg/navigatr.cxx
@@ -222,13 +222,27 @@ IMPL_LINK_NOARG(SdNavigatorWin, SelectToolboxHdl, ToolBox *, void)
PageJump ePage = PAGE_NONE;
if (sCommand == "first")
+ {
ePage = PAGE_FIRST;
+ maTlbObjects->Select( maTlbObjects->GetFirstEntryInView() );
+ }
else if (sCommand == "previous")
+ {
ePage = PAGE_PREVIOUS;
+ if( maTlbObjects->GetPrevEntryInView( maTlbObjects->GetCurEntry() ) != nullptr )
+ maTlbObjects->Select( maTlbObjects->GetPrevEntryInView( maTlbObjects->GetCurEntry() ) );
+ }
else if (sCommand == "next")
+ {
ePage = PAGE_NEXT;
+ if( maTlbObjects->GetNextEntryInView( maTlbObjects->GetCurEntry() ) != nullptr )
+ maTlbObjects->Select( maTlbObjects->GetNextEntryInView( maTlbObjects->GetCurEntry() ) );
+ }
else if (sCommand == "last")
+ {
ePage = PAGE_LAST;
+ maTlbObjects->Select( maTlbObjects->GetLastEntryInView() );
+ }
if (ePage != PAGE_NONE)
{