Author: hdu
Date: Fri Jun 15 11:43:27 2012
New Revision: 1350586
URL: http://svn.apache.org/viewvc?rev=1350586&view=rev
Log:
#c703907# #c703909# fix more SdrUndoGroup sizeof problems
Modified:
incubator/ooo/trunk/main/svx/source/svdraw/svdundo.cxx
Modified: incubator/ooo/trunk/main/svx/source/svdraw/svdundo.cxx
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/main/svx/source/svdraw/svdundo.cxx?rev=1350586&r1=1350585&r2=1350586&view=diff
==============================================================================
--- incubator/ooo/trunk/main/svx/source/svdraw/svdundo.cxx (original)
+++ incubator/ooo/trunk/main/svx/source/svdraw/svdundo.cxx Fri Jun 15 11:43:27 2012
@@ -214,7 +214,7 @@ XubString SdrUndoGroup::GetSdrRepeatComm
{
XubString aRet(aComment);
sal_Char aSearchText[] = "%1";
- String aSearchString(aSearchText, sizeof(aSearchText-1));
+ String aSearchString(aSearchText, sizeof(aSearchText)-1);
aRet.SearchAndReplace(aSearchString, ImpGetResStr(STR_ObjNameSingulPlural));
@@ -245,7 +245,7 @@ void SdrUndoObj::GetDescriptionStringFor
{
rStr = ImpGetResStr(nStrCacheID);
sal_Char aSearchText[] = "%1";
- String aSearchString(aSearchText, sizeof(aSearchText-1));
+ String aSearchString(aSearchText, sizeof(aSearchText)-1);
xub_StrLen nPos = rStr.Search(aSearchString);
|