summaryrefslogtreecommitdiff
path: root/oox/inc/oox/drawingml
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@suse.com>2012-04-26 19:19:03 +0530
committerMuthu Subramanian <sumuthu@suse.com>2012-04-26 19:21:09 +0530
commiteb5f2df4d6f6c215429130b4c27d076f6777e5da (patch)
tree9f2d6b8bf4553d8603ddba12b987f8a535db1cd9 /oox/inc/oox/drawingml
parenta3b8ddf3b7519b9112fdc7ba05b44209113be47b (diff)
n758565: Wrong master slide shape being used.
* Changed <ph> idx to OptValue. * Duplicate code removal.
Diffstat (limited to 'oox/inc/oox/drawingml')
-rw-r--r--oox/inc/oox/drawingml/shape.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/oox/inc/oox/drawingml/shape.hxx b/oox/inc/oox/drawingml/shape.hxx
index b360098c6d6f..6989edeb95be 100644
--- a/oox/inc/oox/drawingml/shape.hxx
+++ b/oox/inc/oox/drawingml/shape.hxx
@@ -130,8 +130,8 @@ public:
void setHiddenMasterShape( sal_Bool bHiddenMasterShape ) { mbHiddenMasterShape = bHiddenMasterShape; }
void setSubType( sal_Int32 nSubType ) { mnSubType = nSubType; }
sal_Int32 getSubType() const { return mnSubType; }
- void setSubTypeIndex( sal_uInt32 nSubTypeIndex ) { mnSubTypeIndex = nSubTypeIndex; }
- sal_Int32 getSubTypeIndex() const { return mnSubTypeIndex; }
+ void setSubTypeIndex( sal_Int32 nSubTypeIndex ) { moSubTypeIndex = nSubTypeIndex; }
+ const OptValue< sal_Int32 >& getSubTypeIndex() const { return moSubTypeIndex; }
// setDefaults has to be called if styles are imported (OfficeXML is not storing properties having the default value)
void setDefaults();
@@ -232,7 +232,7 @@ protected:
rtl::OUString msName;
rtl::OUString msId;
sal_Int32 mnSubType; // if this type is not zero, then the shape is a placeholder
- sal_Int32 mnSubTypeIndex;
+ OptValue< sal_Int32 > moSubTypeIndex;
ShapeStyleRefMap maShapeStyleRefs;