The attached patch solves the error message Error: HeaderBar::InsertItem(): ItemId already exists that a debug build gives when opening the "Open File" dialog.
-- Lionel
>From 73979f4ff9afacf16a6ca6044985cfe04ffff752 Mon Sep 17 00:00:00 2001 From: Lionel Elie Mamane <lio...@mamane.lu> Date: Fri, 5 Aug 2011 00:49:06 +0200 Subject: [PATCH] Open File dialog: Don't try to add filename column twice --- svtools/source/contnr/fileview.cxx | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/svtools/source/contnr/fileview.cxx b/svtools/source/contnr/fileview.cxx index 1cdf90c..8f947c1 100644 --- a/svtools/source/contnr/fileview.cxx +++ b/svtools/source/contnr/fileview.cxx @@ -741,7 +741,7 @@ ViewTabListBox_Impl::ViewTabListBox_Impl( Window* pParentWin, } if( ( nFlags & FILEVIEW_SHOW_NONE ) == FILEVIEW_SHOW_NONE ) bViewHeader = false; - else + else if ( ! ( nFlags & FILEVIEW_SHOW_ALL ) == FILEVIEW_SHOW_ALL ) mpHeaderBar->InsertItem( COLUMN_TITLE, String( SvtResId( STR_SVT_FILEVIEW_COLUMN_TITLE ) ), 600, nBits ); Size aHeadSize = mpHeaderBar->GetSizePixel(); -- 1.7.2.5
_______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice