[Libreoffice-commits] core.git: sd/source

Caolán McNamara caolanm at redhat.com
Tue Sep 9 07:34:36 PDT 2014


 sd/source/core/stlsheet.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 3669242804e59c4e4d9f3db3d4e4534e223cbd78
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Tue Sep 9 15:32:49 2014 +0100

    crashtest: sep should be curSep
    
    Change-Id: Ic83165ee4af86d0ed0bc77505aae8f50cfc1471a

diff --git a/sd/source/core/stlsheet.cxx b/sd/source/core/stlsheet.cxx
index aaeed29..757c378 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)


More information about the Libreoffice-commits mailing list