summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2014-08-11 16:44:37 +0200
committerCaolán McNamara <caolanm@redhat.com>2014-08-11 15:58:13 +0000
commit57de7defc7baf03b0ae3574fa453009f201a2fd1 (patch)
tree627b81bb9ac644a7f389a4dd5038e77b4daa17a4
parent64157c4598606b094f5783804b38cfb4c901a88a (diff)
fdo#81933 do not select 1st slide unconditionally
This is a regression from commit ad0c4bf5790546242884da0c2ec281f2db9e14a0 . But I do not see why this code would be needed for that either. Change-Id: Ied3a5d25b2bec9542aa83c4d7fa36ed5313fc797 (cherry picked from commit 904fdac93b072cc5295cce0360f47926f049e6ea) Reviewed-on: https://gerrit.libreoffice.org/10869 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/slidesorter/controller/SlsPageSelector.cxx5
1 files changed, 0 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
index 1484159df697..3524870b8c42 100644
--- a/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
+++ b/sd/source/ui/slidesorter/controller/SlsPageSelector.cxx
@@ -388,11 +388,6 @@ void PageSelector::UpdateCurrentPage (const bool bUpdateOnlyWhenPending)
break;
}
}
- if ( ! pCurrentPageDescriptor && nPageCount>0)
- {
- // No page is selected. Make the first slide the current page.
- pCurrentPageDescriptor = mrModel.GetPageDescriptor(0);
- }
if (pCurrentPageDescriptor)
{