sfx2/source/dialog/backingwindow.cxx | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-)
New commits: commit f14c4f76c29500d9340ae9b7ffbb31a03ea40cf8 Author: Efe Gürkan YALAMAN <efeyala...@gmail.com> Date: Fri Jun 6 17:30:13 2014 +0300 selection function moved The localview is not causing crash now. Change-Id: Iea2fe607555d2d3c955f8f198240a2b2d1e26788 diff --git a/sfx2/source/dialog/backingwindow.cxx b/sfx2/source/dialog/backingwindow.cxx index 3ed3420..b170b60 100644 --- a/sfx2/source/dialog/backingwindow.cxx +++ b/sfx2/source/dialog/backingwindow.cxx @@ -73,12 +73,28 @@ const int nButtonsFontSize = 15; 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" );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits