summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEfe Gürkan YALAMAN <efeyalaman@gmail.com>2014-06-06 17:30:13 +0300
committerEfe Gürkan YALAMAN <efeyalaman@gmail.com>2014-08-08 18:22:32 +0300
commit5d0c28f39e40ed725c43130481ca136ed43e306b (patch)
tree7ec18e2b3a64c97ee526d3f351e058951768c731
parentc7365a53d421f6ac9a6141c5f48bddd0806775ee (diff)
selection function moved
The localview is not causing crash now. Change-Id: Iea2fe607555d2d3c955f8f198240a2b2d1e26788
-rw-r--r--sfx2/source/dialog/backingwindow.cxx18
1 files changed, 17 insertions, 1 deletions
diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx
index bb9240bb75df..e58e347f5b2d 100644
--- a/sfx2/source/dialog/backingwindow.cxx
+++ b/sfx2/source/dialog/backingwindow.cxx
@@ -74,12 +74,28 @@ float fMultiplier = 1.2f;
const Color aButtonsBackground(114, 168, 84); // TDF green
const Color aButtonsText(COL_WHITE);
+/***
+ *
+ * Order items in ascending order (useful for the selection sets and move/copy operations since the associated ids
+ * change when processed by the SfxDocumentTemplates class so we want to process to ones with higher id first)
+ *
+ ***/
+
+static bool cmpSelectionItems (const ThumbnailViewItem *pItem1, const ThumbnailViewItem *pItem2)
+{
+ return pItem1->mnId > pItem2->mnId;
+}
+
+
BackingWindow::BackingWindow( Window* i_pParent ) :
Window( i_pParent ),
mxDesktop( Desktop::create(comphelper::getProcessComponentContext()) ),
mbInitControls( false ),
mnHideExternalLinks( 0 ),
- mpAccExec( NULL )
+ mpAccExec( NULL ),
+ maSelTemplates(cmpSelectionItems),
+ maSelFolders(cmpSelectionItems)
+
{
m_pUIBuilder = new VclBuilder(this, getUIRootDir(), "sfx/ui/startcenter.ui", "StartCenter" );