Git commit 7e0efdbd7f62b72cd4158189795d802585dff326 by Benjamin Port. Committed on 31/03/2011 at 23:58. Pushed by bport into branch 'stage-outline-bport-artaud'. Remove first empty line in outline mode M +3 -1 kpresenter/part/KPrViewModeOutline.cpp http://commits.kde.org/calligra/7e0efdbd7f62b72cd4158189795d802585dff326 diff --git a/kpresenter/part/KPrViewModeOutline.cpp b/kpresenter/part/KPrViewModeOutline.cpp index 76ab6f2..e1f69a2 100644 --- a/kpresenter/part/KPrViewModeOutline.cpp +++ b/kpresenter/part/KPrViewModeOutline.cpp @@ -123,7 +123,6 @@ void KPrViewModeOutline::populate() { m_outlineEditor->clear(); QTextCursor currentCursor = m_outlineEditor->textCursor(); - // For each slides foreach (KoPAPageBase * pageBase, m_view->kopaDocument()->pages()) { if (KPrPage * page = dynamic_cast(pageBase)) { @@ -155,6 +154,9 @@ void KPrViewModeOutline::populate() } } } + // Delete the first empty line currentCursor.setPosition(0); + currentCursor.deleteChar(); + m_outlineEditor->setTextCursor(currentCursor); }