     }
     
     @IBAction func doSlider(sender: UISlider) {
-        let currentIndex = UserDefaults.standard.integer(forKey: UDKey.CurrentPage)
+        let currentIndex = self.getCurrentPage()
         var currentChapter : ChapterInfo!
         for chapterInfo in model.chapterInfos {
             let startIndex = chapterInfo.startPage

    }
    
    private func setChapterInfo() {
        let currentIndex = UserDefaults.standard.integer(forKey: UDKey.CurrentPage)

        var chapterNumber : Int!
//        var sliderValue = Float(0.0)

            self?.indicator.stopAnimating()
            
            // 前回読み込んだページ数を取得する.
            guard let currentIndex = self?.getCurrentPage() else {return}
            self?.leavesView.reloadData()
            self?.leavesView.currentPageIndex = currentIndex
            
