STRING_LEN is the same as STRING_NOTFOUND

So use -1 here to realign logic to what it was before
35c24f9b6e08ef1328df01b2d3d11ef518897130. Though it
doesn't matter because aThesLookUpStr is going to be
empty in the case where we would examine the default
value of nDelimPos

Change-Id: I369c4e6903407b525dc0dcee9d507e90590eeb6b
This commit is contained in:
Caolán McNamara 2013-10-20 17:04:00 +01:00
parent 3f16ec73e0
commit d89be2a78a

View File

@ -138,7 +138,7 @@ PopupMenu* InsertThesaurusSubmenu_Impl( SfxBindings* pBindings, Menu* pSVMenu )
pBindings->QueryState( SID_THES, pItem );
OUString aThesLookUpStr;
SfxStringItem *pStrItem = dynamic_cast< SfxStringItem * >(pItem);
sal_Int32 nDelimPos = STRING_LEN;
sal_Int32 nDelimPos = -1;
if (pStrItem)
{
aThesLookUpStr = pStrItem->GetValue();