summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2008-04-02 08:54:22 +0000
committerKurt Zenker <kz@openoffice.org>2008-04-02 08:54:22 +0000
commit3d6f5c0685488459e704e8e2a1eac3dad42ef8f4 (patch)
tree493ac7ea9bd4bc718bae7692cddd329c0def3949 /svx
parentcf939ca11c12b54c9520b9f28f0e9051cfe0e0ad (diff)
INTEGRATION: CWS impress139 (1.14.324); FILE MERGED
2008/03/17 12:49:32 cl 1.14.324.2: RESYNC: (1.14-1.15); FILE MERGED 2008/03/12 16:59:06 cl 1.14.324.1: #i79933# no defaults for presentation objects
Diffstat (limited to 'svx')
-rw-r--r--svx/source/sdr/properties/textproperties.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/svx/source/sdr/properties/textproperties.cxx b/svx/source/sdr/properties/textproperties.cxx
index b544e549d6f5..5777b3420732 100644
--- a/svx/source/sdr/properties/textproperties.cxx
+++ b/svx/source/sdr/properties/textproperties.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: textproperties.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: rt $ $Date: 2008-03-12 09:47:30 $
+ * last change: $Author: kz $ $Date: 2008-04-02 09:54:22 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -414,6 +414,15 @@ namespace sdr
void TextProperties::ForceDefaultAttributes()
{
SdrTextObj& rObj = (SdrTextObj&)GetSdrObject();
+
+ if( rObj.GetObjInventor() == SdrInventor )
+ {
+ const sal_uInt16 nSdrObjKind = rObj.GetObjIdentifier();
+
+ if( nSdrObjKind == OBJ_TITLETEXT || nSdrObjKind == OBJ_OUTLINETEXT )
+ return; // no defaults for presentation objects
+ }
+
bool bTextFrame(rObj.IsTextFrame());
// force ItemSet