summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Holesovsky <kendy@suse.cz>2013-05-10 19:56:04 +0200
committerJan Holesovsky <kendy@suse.cz>2013-05-13 11:02:52 +0200
commit04bd0886d0208d08d96078539d491a7c2c3d2b20 (patch)
tree7afaa5338137b4d6b1562b50cbe117900712b9d8
parentf829f34cff62c60a25b2c05015c4d1deb568fd6b (diff)
bnc#758621: We don't need this index for anything.
Worse, it prevents us to enter part of the code that we need to execute in some (valid) circumstances. Change-Id: I15084b5efa10fbd5cd0d42856c2745c93d6765da
-rw-r--r--sd/source/filter/ppt/pptin.cxx10
1 files changed, 1 insertions, 9 deletions
diff --git a/sd/source/filter/ppt/pptin.cxx b/sd/source/filter/ppt/pptin.cxx
index f587b06da0bd..5b88e50ed0f6 100644
--- a/sd/source/filter/ppt/pptin.cxx
+++ b/sd/source/filter/ppt/pptin.cxx
@@ -2332,17 +2332,9 @@ SdrObject* ImplSdPPTImport::ApplyTextObj( PPTTextObj* pTextObj, SdrTextObj* pObj
{
sal_uInt32 nPlacementId = pPlaceHolder->nPlacementId;
sal_Int16 nPlaceholderId = pPlaceHolder->nPlaceholderId;
- sal_uInt16 i = 0;
+
if ( eAktPageKind == PPT_SLIDEPAGE )
{
- for ( ; i < 8; i++ )
- {
- if ( pSlideLayout->aPlaceholderId[ i ] == nPlaceholderId )
- break;
- }
- }
- if ( i < 8 )
- {
PresObjKind ePresObjKind = PRESOBJ_NONE;
sal_Bool bEmptyPresObj = sal_True;
sal_Bool bVertical = sal_False;