diff options
-rw-r--r-- | sd/source/core/stlsheet.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx index aaeed2922be7..757c378b6854 100644 --- a/sd/source/core/stlsheet.cxx +++ b/sd/source/core/stlsheet.cxx @@ -931,7 +931,7 @@ void SAL_CALL SdStyleSheet::setParentStyle( const OUString& rParentName ) throw OUString const curName(pStyle->GetName()); sal_Int32 const curSep(curName.indexOf(SD_LT_SEPARATOR)); OUString const curMaster((curSep == -1) - ? OUString() : curName.copy(0, sep)); + ? OUString() : curName.copy(0, curSep)); // check that the master matches, as msApiName exists once per // master page if (pSdStyleSheet->msApiName == rParentName && master == curMaster) |