[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: =?utf-8?q?=5Bcalligra/stage-outline-bport-artaud=5D_kpresenter/p?=
From: Benjamin Port <port.benjamin () gmail ! com>
Date: 2011-03-31 22:00:25
Message-ID: 20110331220025.D8416A60AE () git ! kde ! org
[Download RAW message or body]
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<KPrPage *>(pageBase)) {
@@ -155,6 +154,9 @@ void KPrViewModeOutline::populate()
}
}
}
+ // Delete the first empty line
currentCursor.setPosition(0);
+ currentCursor.deleteChar();
+
m_outlineEditor->setTextCursor(currentCursor);
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic