diff options
Diffstat (limited to 'xmloff/source/draw/ximpstyl.cxx')
-rw-r--r-- | xmloff/source/draw/ximpstyl.cxx | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/xmloff/source/draw/ximpstyl.cxx b/xmloff/source/draw/ximpstyl.cxx index a96b5bfcac..e47b144ff7 100644 --- a/xmloff/source/draw/ximpstyl.cxx +++ b/xmloff/source/draw/ximpstyl.cxx @@ -730,9 +730,30 @@ void SdXMLPresentationPageLayoutContext::EndElement() } break; } - default: // 5 items + case 5: { - mnTypeId = 18; // AUTOLAYOUT_4OBJ + SdXMLPresentationPlaceholderContext* pObj1 = maList.GetObject(1);
+
+ if(pObj1->GetName().equals(
+ OUString(RTL_CONSTASCII_USTRINGPARAM("object"))))
+ {
+ mnTypeId = 18; // AUTOLAYOUT_4OBJ
+ }
+ else
+ {
+ mnTypeId = 33; // AUTOLAYOUT_4CLIPART
+ }
+ break;
+ + } + case 7: + { + mnTypeId = 33; // AUTOLAYOUT_6CLIPART
+ break;
+ } + default: + { + mnTypeId = 20; // AUTOLAYOUT_NONE break; } } |