[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kpresenter/part
From:       Jean-Nicolas Artaud <jeannicolasartaud () gmail ! com>
Date:       2010-09-25 11:31:55
Message-ID: 20100925113155.E9EB6AC857 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1179418 by artaud:

* Fix the bug: "when a slide moves on itself, it goes at the end of the
document.


 M  +2 -1      KPrViewModeSlidesSorter.cpp  


--- trunk/koffice/kpresenter/part/KPrViewModeSlidesSorter.cpp #1179417:1179418
@@ -217,11 +217,12 @@
         // In case you point the end (no slides under the pointer)
         newIndex = m_viewModeSlidesSorter->pageCount() - 1;
     }
-
+    if (oldIndex != newIndex) {
     m_viewModeSlidesSorter->movePage(oldIndex, newIndex);
     QListWidgetItem *sourceItem = takeItem(oldIndex);
     insertItem(newIndex, sourceItem);
 }
+}
 
 QMimeData* KPrViewModeSlidesSorter::KPrSlidesSorter::mimeData(const QList<QListWidgetItem*> items) const
 {
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic