summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorIvo Hinkelmann <ihi@openoffice.org>2006-08-01 15:05:33 +0000
committerIvo Hinkelmann <ihi@openoffice.org>2006-08-01 15:05:33 +0000
commit17274e934248b7444b6227fe4da8a3554cfb2670 (patch)
tree12b0e1018ad9aecdb3bbfcc16634dd433a172eba /sfx2
parenta8f6c31ddc9db0b813ef39df7082557d3d2bd42d (diff)
INTEGRATION: CWS fwk41 (1.67.6); FILE MERGED
2006/07/21 10:55:55 mav 1.67.6.1: #i67548# fix impossibility to remove empty template groups
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/doc/doctempl.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/doc/doctempl.cxx b/sfx2/source/doc/doctempl.cxx
index bb45629837f5..01f937124307 100644
--- a/sfx2/source/doc/doctempl.cxx
+++ b/sfx2/source/doc/doctempl.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: doctempl.cxx,v $
*
- * $Revision: 1.67 $
+ * $Revision: 1.68 $
*
- * last change: $Author: obo $ $Date: 2006-07-13 13:27:01 $
+ * last change: $Author: ihi $ $Date: 2006-08-01 16:05:33 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -1880,6 +1880,8 @@ sal_Bool SfxDocumentTemplates::HasUserContents( sal_uInt16 nRegion, sal_uInt16 n
// check whether there is at least one editable template
nLen = ( sal_uInt16 )pRegion->GetCount();
nStartInd = 0;
+ if ( nLen == 0 )
+ bResult = sal_True; // the writing part of empty folder with writing URL can be removed
}
else
{