summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sw/source/uibase/app/docstyle.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/uibase/app/docstyle.cxx b/sw/source/uibase/app/docstyle.cxx
index fa169f2026a0..1ca2960b8c07 100644
--- a/sw/source/uibase/app/docstyle.cxx
+++ b/sw/source/uibase/app/docstyle.cxx
@@ -2301,9 +2301,7 @@ void SwDocStyleSheetPool::Remove( SfxStyleSheetBase* pStyle)
break;
case SFX_STYLE_FAMILY_PAGE :
{
- sal_uInt16 nPos;
- if (rDoc.FindPageDesc(sName, &nPos))
- rDoc.DelPageDesc(nPos);
+ rDoc.DelPageDesc(sName);
}
break;