Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


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 <lionel@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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.